Talend tSendmail tutorial

 

0

Configuring the general mail option:

1

 

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.

2

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:

3

 

 

 

 

 

4

Click Next

5

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

6

Click on tSendmail_example

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

7

Click Finish.

Import the context variable to the job:

Click on context sign as below:

8

Select the newly created variable and click ok

9

Click ok.

10

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

Click on + sign as below.

11

 

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

12

13

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

14

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