Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Send email from VFP
Message
From
09/12/2001 10:27:52
 
 
To
08/12/2001 22:55:42
Joel Hokanson
Services Integration Group
Bellaire, Texas, United States
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00591782
Message ID:
00591830
Views:
30
>How can I send a simple email from VFP????


You can use the Nigel Coates' MAPI class that Sergei pointed out or the MAPI ActiveX controls you have with VFP:

MAPI Messages
MAPI Session

You can also use Outlook Express (here's a sample in the Wiki):
http://fox.wikis.com/wc.dll?Wiki~MapiOutlookExpress~VFP

Or you can use plain SMTP, with Rick Strahl's wwIPStuff class (http://www.west-wind.com) as in the following example:
Set Procedure to wwUtils
Set Classlib to wwIPStuff.Vcx
local loSMTP
loSMTP = CreateObject("wwIPStuff")
loSMTP.cMailServer = "mailhost"
loSMTP.cSenderEmail = "moe@3stooges.com"
loSMTP.cSenderName = "Moe Howard"
loSMTP.cRecipient = "larry@3stooges.com"
loSMTP.cSubject = "Subject goes here"
loSMTP.cMessage = "Message goes here"
loSMTP.SendMailAsync()
HTH


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Reply
Map
View

Click here to load this message in the networking platform