Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Send email from Outlook
Message
From
01/03/2002 14:53:01
 
 
To
27/02/2002 22:10:17
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00626134
Message ID:
00627154
Views:
17
Thanks alot... that's exactly what I was lookign for, an "intro" to Outlook Automation.

Aloha,

James
>>Could somebody point me in the right direction. I want to be able to send an email message from within a foxpro application.
>
>Using Outlook, follow this sample:
>
>#DEFINE MAILITEM 0
>#DEFINE IMPORTANCELOW 0
>#DEFINE IMPORTANCENORMAL 1
>#DEFINE IMPORTANCEHIGH 2
>
>oOutLookObject = CreateObject("Outlook.Application")
>oEmailItem = oOutLookObject.CreateItem(MAILITEM)
>
>WITH oEmailItem
>   .Recipients.Add("moe@3stooges.com") && uses the Recipients collection
>   .Subject = "Automation sample"
>   .Importance = IMPORTANCENORMAL
>   .Body = "This is easy!"
>
>   * Note that the fully qualified path and file is required.
>   .Attachments.Add("c:\mydir\sample.txt")
>
>   .Send
>ENDWITH
>
>
>You can also use Nigel Coates MAPI class as Sergey pointed out.
>Another choice is using SMTP with wwIPStuff from Rick Strahl
>http://www.west-wind.com
>
>HTH
Previous
Reply
Map
View

Click here to load this message in the networking platform