Skip to Content
0
Former Member
May 05, 2009 at 07:22 AM

Multiple Email Recepients when using mail pacakging in JAVA AMpping

42 Views

Hello Experts,

i am new to the PI and i am trying to implement a file to mail scenario. i am following Stefan Grube's blog (/people/stefan.grube/blog/2007/04/17/xi-mail-adapter-an-approach-for-sending-emails-with-attachment-with-help-of-java-mapping) to send email using JAVA Mapping. i am able to send email to one recepient and i want to send to multiple recepients. i have tried with semicolon between two email Ids and it is not working. Any thoughts or help in this regard will be highly appreciated.

public void execute(InputStream in, OutputStream out)

throws StreamTransformationException {

String mailSubject = "=?utf-8?Q?Auftragsbest=C3=A4tigung?=";

String mailSender = "\"My Address\"<my address>";

String mailReceiver = "\"Your Address\"<address1;address2>";

Thanks & Regards

- Siva.