cancel
Showing results for 
Search instead for 
Did you mean: 

Receiver Mail Adapter: Formatting the mail content

Former Member
0 Kudos

Dear All,

I'm using a receiver mail adapter. I would like to format the content of the mail using the contents of the XML message. For example:

XML Message

-


<Order>

<OrderID>1234</OrderID>

<CustomerName>Sandeep Joseph</CustomerName>

<NetValue>7467.99</NetValue>

<Link>http://locahost:7000?OrderID=1234</Link>

</Order>

Mail Content

-


Dear Approver,

Please approve the Order - 1234, Customer - Sandeep Joseph

Link: http://locahost:7000?OrderID=1234

Thanks,

-


Are there any modules which would help formatting to this extend? Or any other mechanism?

Thanks,

Sandeep

Accepted Solutions (1)

Accepted Solutions (1)

bhavesh_kantilal
Active Contributor
0 Kudos

The easiest means is to use XSL mapping and create the Content Type as HTML and emded the cotent within HTML tags.

One such example is shown by Praskash in this blog,

/people/community.user/blog/2006/09/07/email-reporting

/people/community.user/blog/2006/09/08/email-report-as-attachment-excelword

If you use the Mail Package option then you can also wite a UDF in your mapping that will populate the content field. For every newline you can use the java new line \n and so on.

Regards

Bhavesh

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Sandeep,

u can change the message mapping for getting the content.