I am trying to use Mule 3.3.0 and configure an SMTP Endpoint. The flow can have a File Inbound Endpoint and a SMTP outbound endpoint. Another flow can have a Java class that ge
It can be done in two ways.
One with Mule configuration
<set-attachment attachmentName="" value="" contentType="" />
Second with Mule API.
org.mule.api.MuleMessage.addOutboundAttachment(String arg0, Object arg1, String arg2)
or
org.mule.api.MuleMessage.addOutboundAttachment(String arg0, DataHandler arg1)
Hope this helps.
To send attachments, add them to the Mule Message outbound attachments.
See addOutboundAttachment
in http://www.mulesoft.org/docs/site/3.3.0/apidocs/index.html?org/mule/api/MuleMessage.html