Monday, 8 August 2016

How to send attachments using SendMail activity in TIBCO


1.2      Scenario4 (How to send attachments using SendMail activity):

My requirement is, I need to send some attachments/files (PDF/Image/Excel) through email using send mail activity.

Steps for Resolution:

 

In case we need to send notification mail with attachments, then we need to follow the below process.

 

Step 1: First we have to get those attachments location path.

 

 

 

Here using mapper activity I extract those attachments path.


 

Input Mapping:


 

Step 3: Send activity configuration

                           NOTE: Register for a free SMTP Account on smtpcorp.com

                      To send emails from our Tibco process, we need to have SMTP host name, IP address, Username and Password. Using Gmail SMTP for sending email from Tibco profess involves many complexities including STARTTLS errors. So, I decided to use free SMTP service of smtpcorp.com.

 

NOTE: To send any attachments configguration of MimePart is mandatory.

Duplicate the MimePart according to your attachment count.

Here I created 2 Mimeparts because I want to send 2 attchments(PDF & Image).

 

1.2.1          Test Results (Html format)


 

Sent mail will look like this