[resolved] Sending the content of tfileoutputdelimited to tsendmail.

Highlighted
One Star

[resolved] Sending the content of tfileoutputdelimited to tsendmail.

Hi,
I have tfileoutputdelimited and now i want to send the content of the file as a single email.
Can anyone suggest me something.
I have used something like below but it is sendinig several mails.

Can you suggest me some alternative.
Thanks,
Rajendra

Accepted Solutions
Five Stars

Re: [resolved] Sending the content of tfileoutputdelimited to tsendmail.

Never mind, I found the solution from another thread by searching the error message:

https://community.talend.com/t5/Design-and-Development/resolved-File-Trigger-send-attachment-if-file...

I had an empty line in attachment file filed. After removing it, it works perfect!

 

Dawn


All Replies
Moderator

Re: [resolved] Sending the content of tfileoutputdelimited to tsendmail.

Hi,
To make it clear, I have designed a demo job.
Please see my screenshots as belows
In addition, how about sending your output file as an attachement in tsendmail?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Moderator

Re: [resolved] Sending the content of tfileoutputdelimited to tsendmail.

Hi Rajendra,
Is your issue fixed? Feel free to post your issue on forum.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Five Stars

Re: [resolved] Sending the content of tfileoutputdelimited to tsendmail.

I wish Talend built new features to handle this issue after 4 years. Smiley Happy

 

I have a project that need to send tFileoutputDelimited content to tSendMail message body as well. I tried Sabrina's suggestion. However, I got an error message said "xxx (eg. id, name) cannot be resolved or is not a field".

I am wondering if it is caused by declaring the variables id and name in Contexts?  I set the type of context as string, and leave the value as "". 

Can someone help with this?

 

Best,

Dawn

Five Stars

Re: [resolved] Sending the content of tfileoutputdelimited to tsendmail.

Never mind, I found the solution from another thread by searching the error message:

https://community.talend.com/t5/Design-and-Development/resolved-File-Trigger-send-attachment-if-file...

I had an empty line in attachment file filed. After removing it, it works perfect!

 

Dawn