Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Nifi PutEmail failure to send flowfile to gmail account

Nifi PutEmail failure to send flowfile to gmail account

Rising Star

My dataflow takes some files from HDFS and after some processing i want to send en email to specific accounts

as notification but with the flowfile itself included as an attachment in the mail.

This is the configuration of the PutEmail processor:

43415-conf.png

Lets say i wanna use my gmail account to send the emails, then the SMTP authorization should be my gmail credentials and the sending address the one of my gmail account right?

This is the error message i receive, any ideas on what is going wrong here?

43414-emer.png

6 REPLIES 6

Re: Nifi PutEmail failure to send flowfile to gmail account

@balalaika

Try to telnet to smtp.gmail.com on port 25 from the command line on the system running NiFi, does it work?

Re: Nifi PutEmail failure to send flowfile to gmail account

New Contributor

Hi Everyone,

@balalaika,@wynner

Any solution for the above mentioned error? I too tried with ports 25,465 & 587 as mentioned in below comments, i am able to telnet smtp.gmail.com, but still getting connection refused error.Any help is highly appreciated.

Thanks in advance!!

Highlighted

Re: Nifi PutEmail failure to send flowfile to gmail account

Contributor

Use port 587 - it work for me.

See link here:

https://support.google.com/a/answer/176600?hl=en

Note: Before you start the configuration, make sure that Less secure apps is enabled for the desired account.

Re: Nifi PutEmail failure to send flowfile to gmail account

Super Collaborator

Using port 465 here with SMTP TLS set to false

Re: Nifi PutEmail failure to send flowfile to gmail account

New Contributor

Thanks a lot for your answer,helped me. also I had to enable allow less secure apps setting in my gmail.

Re: Nifi PutEmail failure to send flowfile to gmail account

New Contributor
Hi,

I am getting the same error, please tell me how did you resolve the error. Already have tried 25, 465 and 587 with TLS mode on and off given in g suite settings and also enabled less secure apps.

Don't have an account?
Coming from Hortonworks? Activate your account here