<?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 May 2016 16:51:00 Z</lastBuildDate><pubDate>29 Apr 2016 13:22:00 Z</pubDate><description>Hello,&#13;
&#13;
I have a procedure to send email with a google account and used the example from webdev help. But it doesn't work.&#13;
&#13;
The message i recieve is:&#13;
&#13;
The last response of SMTP server is:&#13;
&lt;534-5.7.14 Please log in via your web browser and&#13;
534-5.7.14 then try again.&#13;
&#13;
The login and password are okay.&#13;
&#13;
The code is:&#13;
&#13;
PROCEDURE SendEmail(sName is string, spar_RecipientEmail is string, spar_Subject is string,...&#13;
spar_Body is string, spar_SenderEmail is string, spar_Attachment is string, npar_NbAttach is numeric)&#13;
&#13;
sMessage is string&#13;
sEMailOptions is string&#13;
nEmailOptions is int&#13;
&#13;
sSenderEmail is string =NoSpace(spar_SenderEmail)&#13;
sRecipientEmail is string =NoSpace(spar_RecipientEmail)&#13;
sSubject is string =spar_Subject&#13;
sBody is string =sName+":="+CR+spar_Body&#13;
&#13;
EmailSetTimeOut(10)&#13;
// Use a secured SMTP server with authentication&#13;
IF gbEmail_SMPT_SSL THEN&#13;
sEMailOptions = "emailOptionDefault"&#13;
nEmailOptions = emailOptionDefault&#13;
gnEmail_SMTP_Port = 465&#13;
&#13;
ELSE&#13;
sEMailOptions = "emailOptionSecuredTLS"&#13;
nEmailOptions = emailOptionSecuredTLS&#13;
gnEmail_SMTP_Port = 587&#13;
END&#13;
//For this example i will show the variables:&#13;
sName = "Aad Mess"&#13;
gsEmail_no_reply = "ahjmess@gmail.com"&#13;
gsEmail_SMTP_Server = "smtp.gmail.com"&#13;
gnEmail_SMTP_Port = 587&#13;
spar_RecipientEmail = "ahjmess@gmail.com"&#13;
spar_Subject = "Test"&#13;
spar_Body = "Test"&#13;
spar_SenderEmail ="ahjmess@gmail.com"&#13;
spar_Attachment = ""&#13;
npar_NbAttach = 1&#13;
//gsEmail_password = ":-)"&#13;
&#13;
//Open the Session&#13;
IF NOT EmailStartSMTPSession(gsEmail_no_reply,gsEmail_password,gsEmail_SMTP_Server,gnEmail_SMTP_Port,False,nEmailOptions) THEN&#13;
sMessage = "ERROR ( "+ErrorInfo()+" ). In case of a time-out, check the parameters of the firewall on the port used ( "+gnEmail_SMTP_Port+" )."&#13;
//Error(sMessage)&#13;
GloLogging("ERROR",sMessage)&#13;
GOTO RESULT_FALSE&#13;
END&#13;
&#13;
// Initializes the components of the email&#13;
Email.Sender = sSenderEmail // The sender&#13;
//Trace(spar_SenderEmail, spar_RecipientEmail) //for testing&#13;
Email.SenderAddress=sSenderEmail&#13;
Email.Recipient[1] = sRecipientEmail // The recipient&#13;
Email.NbRecipient = 1 // The number of recipients&#13;
Email.Subject = sSubject // The subject&#13;
Email.Message = HTMLToText(sBody) // The body of the message&#13;
Email.HTML = sBody&#13;
Email.NbAttach = npar_NbAttach // The number of attachments&#13;
Email.Attach = spar_Attachment&#13;
&#13;
IF NOT EmailSendMessage(gsEmail_no_reply) THEN&#13;
sMessage = "Cannot open connection ( "+ErrorInfo()+" ). In case of a time-out, check the parameters of the firewall on the port used ( "+gnEmail_SMTP_Port+" )."&#13;
//Error(sMessage)&#13;
GloLogging("ERROR",sMessage)&#13;
GOTO RESULT_FALSE&#13;
END&#13;
&#13;
EmailCloseSession(gsEmail_no_reply)&#13;
RESULT True</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57462-wb20-gmail-doesn-send-anymore/read.awp</link><title>WB20: gmail doesn't send (anymore)</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57462-wb20-gmail-doesn-send-anymore-57535/read.awp</comments><pubDate>6 May 2016 16:51:00 Z</pubDate><description>Fabrice is right. You likely need to make sure the gmail account is set up to "allow access to less secure applications"</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57462-wb20-gmail-doesn-send-anymore-57535/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57462-wb20-gmail-doesn-send-anymore-57535/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57462-wb20-gmail-doesn-send-anymore/read.awp">WB20: gmail doesn't send (anymore)</source><title>Re: WB20: gmail doesn't send (anymore)</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57462-wb20-gmail-doesn-send-anymore-57534/read.awp</comments><pubDate>6 May 2016 14:29:00 Z</pubDate><description>Just in case ...&#13;
&#13;
Check whether you can send an e-mail from Outlook or any other application that uses the SMTP protocol, usin…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57462-wb20-gmail-doesn-send-anymore-57534/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57462-wb20-gmail-doesn-send-anymore-57534/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57462-wb20-gmail-doesn-send-anymore/read.awp">WB20: gmail doesn't send (anymore)</source><title>Re: WB20: gmail doesn't send (anymore)</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57462-wb20-gmail-doesn-send-anymore-57466/read.awp</comments><pubDate>29 Apr 2016 16:15:00 Z</pubDate><description>Hi&#13;
&#13;
and did you do what the error message says (ie login via your web browser to authorize the access via pop/smtp)?&#13;
Because …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57462-wb20-gmail-doesn-send-anymore-57466/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57462-wb20-gmail-doesn-send-anymore-57466/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57462-wb20-gmail-doesn-send-anymore/read.awp">WB20: gmail doesn't send (anymore)</source><title>Re: WB20: gmail doesn't send (anymore)</title></item></channel></rss>
