Support Questions
Find answers, ask questions, and share your expertise

Nifi to send mail using PutEmail Processor with attachment

Nifi to send mail using PutEmail Processor with attachment

Explorer

My dataflow have recipient mail id for which the mail should be triggered with the attachment. As the recipient address is dynamic, the mail are getting triggered two times i) With the actual attachment & ii) with flow details attachment.

I want to trigger mail once per flow with actual attachment. Guide me if anything wrong if the flow :  

 

Aaki_08_0-1613067981934.png

 

How to get the local file attached to putEmail processor 

1 REPLY 1

Re: Nifi to send mail using PutEmail Processor with attachment

@Aaki_08 

The success relationship out of the ControlRate processor is why there are two emails. Only route success from ControlRate to the UpdateAttribute processor and there should only be a single email message.