SUMMARY
The following command logs on to a Microsoft Mail version 2.00 account
using the specified user name and password:
msmail(logOn, name [,password])
In Mail version 3.00, there is added the optional parameter of
"session":
msmail(logOn, name [, password][, session])
A user with this name must exist on the currently connected server. If
that user has a password, it must also be correctly specified. If a
password is not specified and the user has a password, the function
will fail.
Both Mail 2.00 and Mail 3.00 support two independent sessions, one
used by the "Workstation" (desk accessory [DA]) and a secondary
"Application" ("stack" in this case) session. With Mail 3.00 when
using the default ("Application") and with Mail 2.00, if the logOn
request succeeds, all future msmail calls will apply to this user's
mailbox. (The Application takes precedence over the Workstation
session for all calls, except as noted below.)
A logOn call does not ordinarily affect the status of the Mail DA; if
the user has signed on using the DA, a logOn or logOff call will not
disconnect the user. With Mail 3.00 using the "Workstation" session
parameter, the Workstation must not have an active session. To log off
the active session, use the function ChooseServer -- it automatically
terminates any active mail session.