You can use these steps to make the pub.client:smtp service send HTML messages. First, in your service, create a body variable, and set it to contain the HTML that you want to be sent, concat’ing and looping as needed to append table rows and such. Second, build a smtp wrapper service called sendHTML that has to, from, [cc,] subject, & body inputs. The first line of this new two-line service will be a stringToBytes call. Map this service’s in param, body (it will ultimately be your HTML), to the stringToBytes’ string service-in param, and drop body. Third, map the stringToBytes’ byte output param to the smtp service’s attachments/content service-in param, while setting attachments/contenttype to “text/html”.
#Flow-and-Java-services#webMethods#Integration-Server-and-ESB