cancel
Showing results for 
Search instead for 
Did you mean: 

variable subject and an attachment in an email

Former Member
0 Kudos

I know you can use a mailpackage for defining parameters of an email (like subject, to, from, etc...). It is also possible to email a attachment with the MessageTransformBean in the modules tab of the communication channel (content conversion). Now I want to combine those two features. So I would like to create a variable subject (for example with ordernumber in it, a field out of the original file) and the original file needs to be mapped to a flatfile attachment.

I think I cannot use the mailpackage, because the content of the destination message is being lost then. Does anybody have any idea? In fact I need two mappings on the same interface (1 to construct the email and 2 to map the message).

Accepted Solutions (0)

Answers (1)

Answers (1)

moorthy
Active Contributor
0 Kudos

Hi,

Did you try using Java Module to overirde the subject of the mail dynamically using Mail Adapter .

Just one option here-

Develop Java Proxy on the Receiver side and inside the proxy write Java Mail API s for sending attachment and variable subject.

Regards,

Moorthy