on 03-14-2007 4:28 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sandeep,
u can change the message mapping for getting the content.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.