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.
Solved! Go to Solution.
you to check if file available then only tsendmail component work(i:e; runif) else job die using tDie.
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.
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!
Talend named a Leader.
Kickstart your first data integration and ETL projects.
Watch the recorded webinar!
Pick up some tips and tricks with Context Variables
Learn how media organizations have achieved success with Data Integration
View this on-demand webinar about APIs....