<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>6 Jan 2017 01:51:25 Z</lastBuildDate><pubDate>6 Jan 2017 01:05:19 Z</pubDate><description>I am sending eMail from an application. The code works and eMail is sent from the application and received quickly on the other end. But the code is indicating that the eMail was not sent, even though it is arriving. The sender also is not correct, indicating that it is being sent by the gSessionSMTP..Name instead of the sUser. The code follows and, if anyone has the time, perhaps you might take a look at it. I've followed the debugger and everything appears to be good.&#13;
&#13;
sUser is string = EDT_Email        // value input on the screen&#13;
sRecipient is string = "sassy@gmail.com"&#13;
sSubject is string = "Request For Help"&#13;
sMessage is string = EDT_Message &#13;
sBCC is string = ""&#13;
// Session SMTP&#13;
gSessionSMTP is EmailSessionSMTP&#13;
gSessionSMTP.ServerAddress = "smtp.gmail.com"&#13;
gSessionSMTP..Name = "sassybiz@gmail.com"&#13;
gSessionSMTP..Password = "Judge014"&#13;
gSessionSMTP..Port = 587&#13;
gSessionSMTP..Option = emailOptionSecuredTLS&#13;
&#13;
// Content of the eMail&#13;
MyMessage is Email&#13;
MyMessage..Sender = sUser&#13;
MyMessage..Recipient[1] = sRecipient&#13;
MyMessage..Subject   = sSubject&#13;
MyMessage..Message = sMessage&#13;
MyMessage..HTML = MyMessage..Message&#13;
&#13;
// Send the eMail&#13;
IF EmailStartSession(gSessionSMTP) = True THEN&#13;
	IF EmailSendMessage(gSessionSMTP, MyMessage) = True THEN&#13;
	ELSE	&#13;
		Error("The error is : ", ErrorInfo(errFullDetails))         // fails here but sends the eMail&#13;
	END&#13;
ELSE&#13;
	Error("Unable to establish a connection", ErrorInfo(errMessage))&#13;
	Info(ErrorInfo(errMessage))&#13;
END&#13;
&#13;
EmailCloseSession(gSessionSMTP)&#13;
Reset()&#13;
&#13;
Thanks&#13;
Vincent C&#13;
&#13;
--&#13;
Vincent D Crosby</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60623-sending-email-smtp-strange-results/read.awp</link><title>Sending Email SMTP - Strange Results</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>vazcro</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60623-sending-email-smtp-strange-results-60624/read.awp</comments><pubDate>6 Jan 2017 01:51:25 Z</pubDate><description>I think I've answered my own dilema. I am trying to do something that can't be done, make it look like the eMail is coming from …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60623-sending-email-smtp-strange-results-60624/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60623-sending-email-smtp-strange-results-60624/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60623-sending-email-smtp-strange-results/read.awp">Sending Email SMTP - Strange Results</source><title>Re: Sending Email SMTP - Strange Results</title></item></channel></rss>
