Cant send Mail(gmail)

Host: Port = 465 Server = “smtp.gmail.com

I have the required “Logon” details

Sending to a relevant email address.

Getting this Error:

Send SMTP Mail Message: An error occurred while attempting to establish an SSL or TLS connection.

The SSL certificate presented by the server is not trusted by the system for one or more of the following reasons:

  1. The server is using a self-signed certificate which cannot be verified.
  2. The local system is missing a Root or Intermediate certificate needed to verify the server’s certificate.
  3. The certificate presented by the server is expired or invalid.

See https://github.com/jstedfast/MailKit/blob/master/FAQ.md#InvalidSslCertificate for possible solutions.


I have tried with “StartTls” without any improvement (port: 587)

Hi @atomic - Use app password rather than normal password for gmail.

Hope it will help you.
Best!!
Anmol

1 Like

Hi @atomic - You need to enable IMAP setting from Gmail and please check is there any firewall/antivirus blocking the connection.
Try after disabling the firewall.

Best!!
Anmol

Thank you, it was my Antivirus(Avast).

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.