on 05-10-2013 3:03 PM
All,
I am generating an email thorugh UDF by invoking a Mail channel. The scenario works fine, however it's the minor cosmetic issue that is bothering me.
Code used is mentioned below. In this how do I make some parts of the content bold and underlined. I have tried <b></b> but that does not work. For example in this XML below, how do I make strFieldName bold and lets say "is missing" underlined.
String smtpXML ="<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
+"<ns2:Mail xmlns:ns2=\"Mandatory" _mce_href="http://sap.com/xi/XI/Mail/30\"><Subject>Mandatory">http://sap.com/xi/XI/Mail/3... Field Missing</Subject><From>xyz@xyz.com</From><To>xyz@xyz.com</To><Content>"
+"Dear User,\n\nMandatory Field '"+strFieldName+"' is missing. "+ "Please find below the interface details"+"\n\nInterface Name: "+headerField1+"\n\nInterface NameSpace: "+headerField2+"\n\nSender System: "+headerField3+"\n"+"Receiver System: "+headerField4+"\n\nPlease populate all the mandatory fields and resend the message.\n\nRegards,\nPI Team. </Content></ns2:Mail>";
Thanks.
Hi Vicky,
Try set the tag <ContentType> with "text/html; charset=ISO-8859-1
:".
And fill the Content with HTML, like:
"<Content>"
+"<html>
<head>
<title>Title</title>
</head>
<body>
Dear User,<br/><br/>Mandatory Field '"+strFieldName+"' is missing. "+ "Please find below the interface details"+"<br/><br/>Interface Name: "+headerField1+"<br/><br/>Interface NameSpace: "+headerField2+"<br/><br/>Sender System: "+headerField3+"<br/>"+"Receiver System: "+headerField4+"<br/><br/>Please populate all the mandatory fields and resend the message.<br/><br/>Regards,<br/><b>PI Team.</b>
</body>
</html>"
+"</Content>"
Regards,
Pedro Baroni
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
A <b> would no help you in a plain text.
You need to create HTML, but I reckon the effort would increase the benefit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.