Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to send mail with VFP
Message
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00703516
Message ID:
00703617
Views:
19
>Is it possible to send e-mail with VFP on computer with no Outlook or outlook express installed?
>I thought it might be possible using Winsock or something like this, but I don't know what to use.

If your clients are running NT with Option Pack for or Win2000 or higher, you can use Collaborative Data Objects (CDO). Here is some code that use to send our the monthly email reminder to our user group.
oMSG = CREATEOBJECT("CDO.Message")

lcBody = FILETOSTR("meeting.txt")
USE newvanfox
SCAN
	oMSG.To = newvanfox.email
	oMSG.Sender = "super@duper.com"
	oMSG.Subject = "VanFox: Sept 25th meeting"
	oMSG.TextBody = lcBody
	oMSG.Send()
ENDSCAN
release oMSG
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform