I try to do an IS Service that will send an e-mail using smtp service.
I have no problem to make a properties files to fill the header, and no problem to build a “dynamic” subject (with variable substitutions).
But I don’t know how to do the body…
Well in Inputs I got my canonical with some variables (string variable, listOfString or ListofDocument(An array)). I would like to take a body template in HTML, and “replace” some defined fields. For example :
<p> Please here is your invoice [B]%invoiceNumber%[/b] </p>
<p> Here is comments about the invoice : <Table> <td>%myDocumentListHeader1%</td> .... </Table> </p>
I think that I have to use the MINE package (I d’ont not yet how to use it, never used for the moment …)
So I think I have to map my canonical data in this “buildBodyMail” service, before invoke the smtp service.
To you have any idea or examples to help me ?
Maybe a Java service ?
EDIT : I have found something here (my forum search was not completed) : http://www.wmusers.com/forum/showthread.php?p=60853&highlight=smtp#post60853
Maybe that will help.