Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sending mail by MAPI controls
Message
 
To
22/11/2002 12:58:34
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00725879
Message ID:
00725900
Views:
12
Something like:

oSession = CREATEOBJECT("mapi.session")
* objSession.Logon(pLogID)
oSession.Logon()
oMessage = oSession.Outbox.Messages.Add
oMessage.Subject = "subject"
oMessage.Text = "message"

oRecip = oMessage.Recipients.Add
oRecip.name = RECIPIENT
oRecip.Resolve
oMessage.Send
oSession.Logoff

RELEASE oRecip, oMessage, oSession

>I have an idea to handle unrecognized errors with generating error-report (version, memory variables, etc) and sending it via e-mail to developer.
>
>Do anybody have example of composing simple mail using MAPISession and MAPIMessages controls?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform