No email attachment. No email should be sent.

Six Stars

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


Accepted Solutions
Nine Stars

Re: No email attachment. No email should be sent.

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.

All Replies
Seven Stars

Re: No email attachment. No email should be sent.

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

Regards
Aashish
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Nine Stars

Re: No email attachment. No email should be sent.

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.

 

 

Highlighted
Six Stars

Re: No email attachment. No email should be sent.

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!

Nine Stars

Re: No email attachment. No email should be sent.

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.

Calling Talend Open Studio Users

The first 100 community members completing the Open Studio survey win a $10 gift voucher.

Start the survey

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Downloads and Trials

Test drive Talend's enterprise products.

Downloads