(07-17-2018, 03:05 PM)jjeffman Wrote:Quote:SMTP: smtp.gmail.com
Porta: 587
UseTLS: utNoTLSSupport
You MUST set UseTLS to utUseExplicitTLS when using port 587. That will send the required STARTTLS command.
(07-17-2018, 03:05 PM)jjeffman Wrote: No matter the value I set to the SSLOptions method the error message is the same.
Because the STARTTLS error has nothing to do with the SSL/TLS settings themselves. STARTTLS is an SMTP command to request a SSL/TLS session be created on a currently-unsecure connection.
(07-17-2018, 03:05 PM)jjeffman Wrote: I have just changed some code positions to assure that Port and UseTLS properties have the correct value. The error has changed to :
"ERROR: <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbt6
0p_wj6E9KhbWDRIYTXL6YEbKe0N7DiH8CI74CO8P28UObvXknuYgd6NLLXi_gK3bQPRPfw
W4cJSXeqRDmmdao9yKEJToJLJwJRM7cWz0hSwRg_SkhnI-IR2IB38QqvEfzcHvOHD-HnT4
9IXPaGnyUCffpeTawZ5DQhBatcB45l1Ncta9mWLrg-02ePGMdFyVnwNWV8U1EPlOYUZ3C0
rY3Dizvx9JK2UC-zyHlRi9VYUyUdD84xr6LeX1qRzZDjbFHtyi> Please log in via
your web browser and then try again."
What am I doing wrong?
Nothing. Google is simply asking you to verify your PC/device before it will then allow an SMTP session from that same PC/device.
(07-17-2018, 03:05 PM)jjeffman Wrote: After going to the limk Gmail sent in the error message and having changed the security options I have succeeded on snding emails through Gmail SMTP.
OK.