Not really, SSL v2/v3 is considered as unsafe and must not be used. TLS 1.0/1.1 is considered as weak and shouldn’t be used either. Only TLS v1.2 and v1.3 are considered as safe and represent the current state of technology.
The host smtp.gmail.com accepts these protocols with ciphers:
[code]Non Weak’ cipher suites accepted by this service via the TLSv1.0 protocol:
if MailSocket.port = 587 then
MailSocket.SMTPConnectionType = SMTPSecureSocket.SMTPConnectionTypes.STARTTLS
else
MailSocket.SMTPConnectionType = SMTPSecureSocket.SMTPConnectionTypes.SSLTLS
end if
No really, use SSLv23. While unfortunately named, this is actually negotiation mode and will start with the highest encryption available and work its way down to TLSv1 until it finds one that works.
using MailSocket.SMTPConnectionType = SMTPSecureSocket.SMTPConnectionTypes.STARTTLS
I get the following event log (from the SMTPSecureSocket Mailsocket):
Connection Established
535-5.7.8 Username and Password not accepted. Learn more at
535 5.7.8 https://support.google.com/mail/?p=BadCredentials h1sm3152357otm.34 - gsmtp
All Messages Sent - Complete
102
Using MailSocket.SMTPConnectionType = SMTPSecureSocket.SMTPConnectionTypes.SSLTLS
I get no results from the SMTPSecureSocket events and no email in my inbox
Are you sure the password you are using is the code generated by google (Allow less secure apps) for your specific app?
In fact I do not have any problem either with 2step auth and Allow less secure apps, either with Google and other providers.
[code]
SMTPsock.address = trim(smtpFld.text)//“smtp.mail.yahoo.com”, “smtp.gmail.com” etc.
SMTPSock.port = val(portFld.text)
SMTPSock.username = userFld.text
SMTPSock.password = passFld.text//code gotten from Google/Yahoo etc.
if SMTPSock.port = 587 then
SMTPsock.SMTPConnectionMode = 0//startls
else
SMTPsock.SMTPConnectionMode = 1
end if
SMTPsock.ConnectionType = SSLSocket.SSLv23
SMTPsock.secure = true