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
".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