If a session is not started, the email generation fails, and an error is
returned stating that no current session exists.
How can I start a MAPI messaging session programmatically? We don't want to
require that our users start Outlook before using the program.
Thanks in advance-
Alan
>How can I start a MAPI messaging session programmatically? We don't want to
>require that our users start Outlook before using the program.
You can start a Simple MAPI session using MAPILogon.
---
Yorai Aminov (TeamB)
http://ourworld.compuserve.com/homepages/yaminov
(TeamB cannot answer questions received via email.
To contact me for any other reason remove nospam from my address)
Whenever I call it, I get a return code of 2.
Thanks,
Alan
Yorai Aminov (TeamB) <yam...@nospam.trendline.co.il> wrote in message
news:36f2d924....@forums.inprise.com...
> On Fri, 19 Mar 1999 13:17:37 -0600, "Alan McKeen"
> <Al...@MI-Assistant.com> wrote:
>
> >How can I start a MAPI messaging session programmatically? We don't want
to
> >require that our users start Outlook before using the program.
>
>Could you please provide an *example* of MAPILogon, including the
>declarations for any variables passed to the function (like the lplhSession
>parameter).
procedure TForm1.Button1Click(Sender: TObject);
var
Session: THandle;
begin
MAPILogon(Application.Handle, nil, nil, MAPI_LOGON_UI, 0, @Session);
MAPILogoff(Session, 0, 0, 0);
end;
Alan
Yorai Aminov (TeamB) <yam...@nospam.trendline.co.il> wrote in message
news:36f90653...@forums.inprise.com...