ChrisRChamberlain
Programmer
The following code from a command button should enable a user to e-mail directly through MS Outlook Express.
It requires the user to actually send the message from Outlook Express.
Any alternatives that don't require user intervention?
*--
oform = CREATEOBJECT([FORM])
WITH oform
[tab].AddObject([Session1],[oleControl],[MSMAPI.mapiSession])
[tab].AddObject([Message1],[oleControl],[MSMAPI.mapiMessages])
[tab].Session1.Signon
[tab].Message1.sessionid = oform.Session1.sessionid
[tab].Message1.Compose
[tab].Message1.RecipDisplayName = [support@lithoplas.com]
[tab].Message1.AttachmentPathname = [C:\autoexec.bat]
[tab].Message1.msgSubject = [Program error]
[tab].Message1.msgNoteText = [This is a test]
[tab].Message1.Send(1) && Incorrect parameter?
[tab].Session1.Signoff
ENDWITH
RELEASE oform
*--
TIA
Chris [sig][/sig]
It requires the user to actually send the message from Outlook Express.
Any alternatives that don't require user intervention?
*--
oform = CREATEOBJECT([FORM])
WITH oform
[tab].AddObject([Session1],[oleControl],[MSMAPI.mapiSession])
[tab].AddObject([Message1],[oleControl],[MSMAPI.mapiMessages])
[tab].Session1.Signon
[tab].Message1.sessionid = oform.Session1.sessionid
[tab].Message1.Compose
[tab].Message1.RecipDisplayName = [support@lithoplas.com]
[tab].Message1.AttachmentPathname = [C:\autoexec.bat]
[tab].Message1.msgSubject = [Program error]
[tab].Message1.msgNoteText = [This is a test]
[tab].Message1.Send(1) && Incorrect parameter?
[tab].Session1.Signoff
ENDWITH
RELEASE oform
*--
TIA
Chris [sig][/sig]