Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is it possible to send email over the Internet
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01619313
Message ID:
01619344
Views:
56
To use cdo2000
LOCAL loMail as cdo2000 OF cdo2000.prg
loMail = NEWOBJECT("Cdo2000", "Cdo2000.prg")

loMail.cServer="smtp.someserver.com"
loMail.nServerPort=25
loMail.lUseSSL=.F.
loMail.nAuthenticate=1
loMail.cUserName="username"
loMail.cPassword="password"
loMail.cFrom="you@you.com"
loMail.cTo="him@him.com"
loMail.cCC=""
loMail.cSubject="email subject"
loMail.cTextBody="email body"

IF loMail.send()>0
	LOCAL lcErrorMsg,lnX
	lcErrorMsg=""
	FOR lnX=1 TO loMail.GetErrorCount()
		lcErrorMsg=lcErrorMsg+loMail.Geterror(lnX)+" "
	ENDFOR
	* Clear errors
	loMail.ClearErrors()
	
ENDIF
Brandon Harker
Sebae Data Solutions
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform