PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 23 → Email Send Error
Email Send Error
Débuté par Vijay Patel, 17 sep. 2012 11:09 - 2 réponses
Posté le 17 septembre 2012 - 11:09
I Am Send Email In Use gmail Server, To Give 1 error,


UserName is string
UserName = "testemail@Gmail.com"
IF EmailStartSMTPSession(UserName,"Email123","smtp.gmail.com",587) = True THEN

Email.NbRecipient=1
Email.Recipient="Receivemail@gmail.com"
Email.Subject="hi"
Email.Sender=UserName
Email.Message = "Email content"
IF EmailSendMessage(UserName) = False THEN
Error()
END
EmailCloseSession(UserName)
ELSE
Error("Unable to establish the connection",ErrorInfo(),...
"In case of time-out, check the parameters of the ""Firewall"" on the port used (587)")
END



Error Is,
unable to send Message,
Check the receipeint addresses as well as your account settings(Sender address),

Failure may be caused by a technical problem.
four successive attempts have been mode,problem Details.

-First Attempt:
Content of email.sender not recognized by server transaction deriad.
Last SMTP server Response:
<530.5.7.0 must issue a STARTTLS command First :gj9sm6378036pbc.16>

--Second Attempt:
content of email sender not recognized by server.Transaction denied.
Last SMTP server Response.
<530.5.7.0 must issue a STARTTLS command First: gj9sm6378036pbc.16>

essai 2

--Third Attempt:
content of Email.Sender not Recognized by server.Transaction denied.
Last SMTP server Response.
<530 5.7.0 must issue a STARTTLs command First.gj9sm6378036pbc.16>

--Fourth Attemp:
Content of Email.Sender not Recognized by Server.Transaction denied.
Last SMTP server response:
<530 5.7.0 must issue a STARTTLS command first.gj9sm6378036pbc.16>
Posté le 18 septembre 2012 - 10:24
SMTPSession is EmailSMTPSession
SMTPSession.Name="User"
SMTPSession.Password="Password"
SMTPSession.ServerAddress="smtp.gmail.com"
SMTPSession.Port=587
SMTPSession.Option = emailOptionSecuredTLS

MyMail is email

//Fill MyMail variable

EmailStartSession(SMTPSession)
//Check error

EmailSendMessage(SMTPSession,Correo)
//Check error

EmailCloseSession(SMTPSession)
Posté le 15 novembre 2018 - 16:41
Hi
I have the same problem,
did you find solution?
Thanks