Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CDO2000 email question

Status
Not open for further replies.

colfrank

Programmer
Jun 26, 2014
9
US
The following code (VFP9 sp2) works fine except that when the email is delivered the value of
".cFrom" is ignored and replaced with the value in ".cUserName" which I do not want, what am I missing ?

.... code....
WITH loMail
.cServer = "smtp.comcast.net"
.nServerPort = 465
.lUseSSL = .T.

.nAuthenticate = 1 && cdoBasic
.cUserName = "xxxx@comcast.net"
.cPassword = "xfinity9966"

.cFrom = "ken@xyz.org"

.cTo = ALLTRIM(members.email)

.cSubject = " Monthly Statement "

.cTextBody = ALLTRIM(thisform.lcMessage.Value)

.cAttachment = "estatements\"+ALLTRIM(email.nfile)

ENDWITH

 
this seems to work

.cFrom = "Ken Jones <ken@xyz.org>"
.cReplyTo = "Ken Jones <ken@xyz.org>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top