Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sending Mail via SMTP
Message
 
To
29/06/2005 04:31:42
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01027287
Message ID:
01057306
Views:
18
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform