Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
rgranado
Contributor III
Contributor III

No email attachment. No email should be sent.

Hi guys,

 

I was wondering if you have any suggestions on how to best design this:if there is no email attachment found, do not send the email at all.

 

Thanks for your help.

 

Rhoda

Labels (2)
1 Solution

Accepted Solutions
iamabhishek
Creator III
Creator III

Glad it helped.
Please accept the solution if it worked for you which would help fellow community users if they ever stuck up with similar kind of issues.
Kudos are also welcome.

View solution in original post

4 Replies
aashish_21nov
Creator
Creator

you to check if file available then only tsendmail component work(i:e; runif) else job die using tDie.

iamabhishek
Creator III
Creator III

Alternatively, there is already an option in tSendMail - "Die if the attachment file doesn't exist" which would basically solve your purpose. This property selected by default which would mean tSendMail would not send message if there are no attachments.

 

 

rgranado
Contributor III
Contributor III
Author

Thank you for the information.  I knew that there is something this simple to solve this issue!

 

As per your advise, what I did was to check the "Die if the attachment file doesn't exist".  And because I didn't want the whole job to die, I unchecked the "Die on error".

 

Again, thanks so much!

iamabhishek
Creator III
Creator III

Glad it helped.
Please accept the solution if it worked for you which would help fellow community users if they ever stuck up with similar kind of issues.
Kudos are also welcome.