I have an issue where the Send email node works on AP but not when deployed to Server. I am using the Gmail settings, and tried with:
with the username/password embedded in the node,
the Credentials manager
Credentials Configuration node to pass username and password
but it just doesn’t work through the Server.
Some other posts corrected this by turning the Google ‘Allow less secure apps’ off and on again (
https://hotter.io/docs/email-accounts/secure-app-gmail/) - but this also did not work for me.
Any ideas would be appreciated!
Send Email 3:92
Execute failed: Error while communicating with the smtp server: javax.mail.AuthenticationFailedException
Related Forum post:
I’m trying to sent the email at local level the workflow is working well , but when i run the job from the server I ve got this error
Any Idea what could be ?
good job, you have already tested all possible solutions that are mentioned in your case. Could you please provide the server logs, I will have a look at the specific error? You can download them on the web portal/Administration panel logged in as a KNIME admin. I will send you a PM how to provide the file.
Actually I managed to figure this out with the help of a KNIME team member.
I am documenting the solution below for anyone else experiencing the problem - note, this was a GMAIL specific setup:
Send Email node worked in AP but not in Server, using Gmail email credentials
There are several things to make the Send Email node work for Gmail in Server:
Allow “less secure” apps -
Log into your Google account -
Go to Security
Go to Signing in to Google
Here you must set 2 things:
a. Set-up 2-step verification. This will either make you verify through a mobile or other method
b. Set-up an App Password. This will generate a new password for you - specific to use with an external app. It should look like this:
Next, go to the KNIME workflow, use the Credentials configuration node to feed the Send Email node - but use
the Google App Password instead of the regular email password!
This setup should work with both AP and Server!
If there is any issue with running on Server then double check Server Execution Options - potentially the App password will need to be entered here too:
Hope this helps someone else facing this challenge.
Now, to figure out the Microsoft Exchange and Yahoo sending methods
@supersharp for the great and detailed explanation. I thought this would only the preferred method if the two factor authorization is already active.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.