Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sending Mail via SMTP
Message
 
À
29/06/2005 04:31:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01027287
Message ID:
01057306
Vues:
19
>Hi all
>
>Is there a way to send email from Fox via SMTP, has anyone got any examples?
>
>Thanks

I use a rendition of SendSMTPEmail.prg DLL solution. I [also] use the CDO object to acquire the SMTP server:
oCDO=CREATEOBJECT('CDO.Message')
xCFG=oCDO.Configuration
IF xCFG.Fields.Count>12
   ulCDOField13=xCFG.Fields(13).Value
   ulCDOField15=xCFG.Fields(15).Value
ELSE
   MESSAGEBOX([Cannot get Email or STMP info from CDO];
              ,0,[Missing SMTP Server Name])
   ulCDOField13=[NoEmailAccount@YourComputer.com]
   ulCDOField15=[NOSMTP]
ENDIF
Imagination is more important than knowledge
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform