ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » ESQL code for email message

Post new topic  Reply to topic
 ESQL code for email message « View previous topic :: View next topic » 
Author Message
rkford11
PostPosted: Wed Sep 29, 2004 9:00 am    Post subject: ESQL code for email message Reply with quote

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
View user's profile Send private message
EddieA
PostPosted: Wed Sep 29, 2004 1:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
kirani
PostPosted: Wed Sep 29, 2004 5:12 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
rkford11
PostPosted: Wed Sep 29, 2004 6:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
EddieA
PostPosted: Wed Sep 29, 2004 7:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
Ramphart
PostPosted: Wed Sep 29, 2004 9:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
rkford11
PostPosted: Thu Sep 30, 2004 8:24 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » ESQL code for email message
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.