I’m trying to send email through SMTPSecureSocket using my gmail account but it’s being blocked and flagged as a less secure app. What are the settings I need to use to get around this? These settings always worked fine for me before. Thanks.
Dim SckEmail As New sckMail
' Prepare the SMTP Socket
SckEMail.ConnectionType = 3
SckEMail.Secure = True
SckEMail.SMTPConnectionMode = 0
Nothing… Still can’t send email using my gmail account. Like I said, a few months ago the last time I tried to use SMTPSecureSocket my original code example worked fine.
Ok so after doing some more testing I’ve found that the only way I can send email through gmail is by turning this setting on.
I tested with each TLS setting and I also tried using the EmailSSLExample project. If I turn that setting on this code works and the example project starts working.