Setting sender name and email - 6.3

Talend ESB Mediation Developer Guide

EnrichVersion
6.3
EnrichProdName
Talend Data Fabric
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for ESB
Talend Real-Time Big Data Platform
task
Design and Development
EnrichPlatform
Talend ESB

You can specify recipients in the format, name <email>, to include both the name and the email address of the recipient.

For example, you define the following headers on the a Message :

Map headers = new HashMap();
map.put("To", "Jens Hansen <jenshansen@gmail.com>");
map.put("From", "Joe Bloggs <jbloggs@gmail.com>");
map.put("Subject", "Camel is cool");