Author |
Message
|
rkford11 |
Posted: Wed Sep 29, 2004 9:00 am Post subject: ESQL code for email message |
|
|
Partisan
Joined: 06 Jun 2004 Posts: 316
|
SET OutputRoot.XML.Message."To" = InputRoot.XML.Message.Recipient;
SET I = POSITION(' ' IN OutputRoot.XML.Message."To");
WHILE (I <> 0) DO
SET OutputRoot.XML.Message."To" = OVERLAY(OutputRoot.XML.Message."To" PLACING '_' FROM I);
SET I = POSITION(' ' IN OutputRoot.XML.Message."To");
END WHILE;
SET OutputRoot.XML.Message."From" = InputRoot.XML.Message."From";
SET OutputRoot.XML.Message.Subject = InputRoot.XML.Message.Subject; SET OutputRoot.XML.Message.Body = InputRoot.XML.Message.Body;
this is the coding when we send the mail to one recepient.but i want it to be sent to multiple recepients. please help me in modifying the code.
Thanks |
|
Back to top |
|
 |
EddieA |
Posted: Wed Sep 29, 2004 1:34 pm Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
From memory, I don't think you can.
Try setting up a mailing "list" and send the e-mail to that.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
kirani |
Posted: Wed Sep 29, 2004 5:12 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Have you tried specifying more than one email address in Message.To section? _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
rkford11 |
Posted: Wed Sep 29, 2004 6:28 pm Post subject: |
|
|
Partisan
Joined: 06 Jun 2004 Posts: 316
|
kirani wrote: |
Have you tried specifying more than one email address in Message.To section? |
I have given more than one email address in <To> </To> child, but the message was routed to error queue.can somebody please explain me how sendmailplugin node understands the XML message we send to it and how it routes the message to SMTP server( in what format).
Thanks |
|
Back to top |
|
 |
EddieA |
Posted: Wed Sep 29, 2004 7:39 pm Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
Again, from memory, the source code is provided as part of the Support Pac. Read it.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
Ramphart |
Posted: Wed Sep 29, 2004 9:29 pm Post subject: |
|
|
 Disciple
Joined: 21 Jul 2004 Posts: 150 Location: South Africa, JHB
|
rkford11 wrote: |
I have given more than one email address in <To> </To> child, but the message was routed to error queue.can somebody please explain me how sendmailplugin node understands the XML message we send to it and how it routes the message to SMTP server( in what format). |
This is the basic XML that the plugin expects. <Cc> and <Bcc> can be omitted (optional)
<Message>
<From>abc@dce.co.za</From>
<To>gef@abc.co.za</To>
<To>zzz@abc.co.za</To>
<Cc></Cc>
<Cc></Cc>
<Bcc></Bcc>
<Bcc></Bcc>
<Subject>An e-mail from SendMail Pluging</Subject>
<Body>
<Line>Testing Mail PlugIn</Line>
<Line>Testing Mail PlugIn</Line>
<Line>Testing Mail PlugIn</Line>
</Body>
</Message>
Regards _________________ Applications Architect |
|
Back to top |
|
 |
rkford11 |
Posted: Thu Sep 30, 2004 8:24 am Post subject: |
|
|
Partisan
Joined: 06 Jun 2004 Posts: 316
|
Ramphart wrote: |
rkford11 wrote: |
I have given more than one email address in <To> </To> child, but the message was routed to error queue.can somebody please explain me how sendmailplugin node understands the XML message we send to it and how it routes the message to SMTP server( in what format). |
This is the basic XML that the plugin expects. <Cc> and <Bcc> can be omitted (optional)
<Message>
<From>abc@dce.co.za</From>
<To>gef@abc.co.za</To>
<To>zzz@abc.co.za</To>
<Cc></Cc>
<Cc></Cc>
<Bcc></Bcc>
<Bcc></Bcc>
<Subject>An e-mail from SendMail Pluging</Subject>
<Body>
<Line>Testing Mail PlugIn</Line>
<Line>Testing Mail PlugIn</Line>
<Line>Testing Mail PlugIn</Line>
</Body>
</Message>
Regards |
Thanks to all of you, your replies really helped me a lot. |
|
Back to top |
|
 |
|