Send Email with Gmail. Problems with Authentication Google since Nov2024

I can not work with Send Email node and using my gmail account. I have defined a 16 character password for applications and I write it in the node password, but it doesn’t work. The node works well using a web service where I have an email account that does not require authentication , but I can’t configure it with a gmail mail address. Does anyone know how it works with a password application and using Knime 5.3.3?

Hi,
I am currently working with the Send Email node and a Gmail account. Here’s what I did to make it work:

  1. Activate 2-factor authentication in Gmail preferences.
  2. Create an app-specific password.

Configure the node as follows:

  • Host: smtp.gmail.com
  • SMTP Port: 465
  • Activate: SMTP host requires authentication.
  • Username: Your Gmail account.
  • Password: App-specific password.
  • Connection security: SSL
2 Likes

Hi and thank you very much Stephane

However I configured a 2-factor authentication in Gmail preferences and I configured the node in the way you indicated, but I get this error message:

ERROR Send Email 4:1 Execute failed: This error occurred while communicating with the SMTP server: “javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465;
nested exception is:
javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target”.

Hi @fmc00006 this is a certificate issue. You probably need to accept the certificate “manually” first (for example via a browser).
There are a few discussions about this on the forum as this comes up quite often.
You can also check this video for more info: https://www.youtube.com/watch?v=FYD17GbNZsk

1 Like

Thank you, Stephane and Bruno. This is exactly the error I get. I’am going to try to fix it with the indications of the video you mentioned!!! Thanks!!