Wednesday, 24 July 2013 12:11

Integrating - tSendmail in Talend Open Studio

Written by 
Rate this item
(0 votes)

Talend tSendmail tutorial

The Below tutorial on tSendmail expalins how to send a mail with attachments from talend ETL job. The tutorial further explains the concept of using a job level context variable usage for creating a file attachment variable.

Refer below for step by step implementation of file attachment:



Configuring the general mail option:


Set the mailing list and mail features as below for fields:

To, From, Sendername, Cc, Bcc, Subject and Message.

Please Note: Attachments is explained at the end.


Configure the mail host as per the mail host services used.

SMTP Host and Port

Use SSL Support and STARTTLS Support as per the service provider configuration. 


Getting attachment to Talend tSendmail using a context variable as below:

Create Context variable:








Click Next


Enter the Name in below screen and click on Value as Tree tab:


Click on tSendmail_example

Enter the file path to the value. Please note for windows users the backslash “/” needs to be used.


Click Finish.

Import the context variable to the job:

Click on context sign as below:


Select the newly created variable and click ok


Click ok.


Include the context file in the tSendmail component in attachment as below:

Click on + sign as below.



Select the file name and press ctrl+space and the below screen appears:



Double click on the added context variable i.e. context.tSendmail_example.


By Using the above variable you can attach the file referred by the context variable to the sent mail.

Read 20621 times Last modified on Tuesday, 20 August 2013 11:48

Leave a comment

Make sure you enter the (*) required information where indicated. HTML code is not allowed.