Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to send mail with VFP
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00703516
Message ID:
00703617
Vues:
21
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform