Wednesday, June 6, 2012

OSB send html email

Ok this is what you hit in google

I have tried and it's simple:

create a Business Service

Service Type: Messaging Service
Request Message Type : text
Protocol : email
Endpoint URI: mailto:pippo@pappo.com
SMTP Server : mysmtpserver


you can test the BS:

<html>
<body>
<b>ciao bello</b>
<i>ciao bello</i>
</body>
</html>

as long as you specify well formed HTML it should not pose any XML validation problem.

and make sure in the Transport Headers part you specify

Content-Type: text/html


If you go through a Proxy Service, it ca take care of that for you, but the problem is that it seems to precede it with a "xml" header:

<?xml version="1.0" encoding="ISO-8859-1"?> <html> <body> <b>ciao bello</b> <i>ciao bello</i> </body> </html>

No comments: