Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sending email through Outlook
Message
From
04/01/2012 07:30:17
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01532147
Message ID:
01532149
Views:
48
If you know Outlook is the MAPI client then ;
loOutlook = CREATEOBJECT("Outlook.Application")
loMessage = loOutlook.createitem(0)
loMessage.TO = YourMailto
loMessage.bcc = Yourbcclist
loMessage.subject = YourEmailSubject

*) then either;

 loMessage.body = YourEmailBody

*) or

  loMessage.HTMLBody = YourHTMLBody

  loMessage.attachments.ADD(YourFileName)

loMessage.DISPLAY()
loInspector=loMessage.GetInspector()
loInspector.Activate()

loMessage = .NULL.
loOutlook = .NULL.
loInspector= .NULL.
Gary.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform