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 » How to get the "Cc" with the sendmail plugin node

Post new topic  Reply to topic
 How to get the "Cc" with the sendmail plugin node « View previous topic :: View next topic » 
Author Message
uliss
PostPosted: Thu May 10, 2007 12:32 am    Post subject: How to get the "Cc" with the sendmail plugin node Reply with quote

Apprentice

Joined: 10 Jan 2007
Posts: 27

Hi,

I need to send e-mails using the sendmail plugin node.

I get the "from" and the "To". But How can I send an e-mail as "Cc"?

For example:

From: e@ein.com
To: a@ein.com

Cc: i@ein.com THIS ONE IS WHAT I NEED.

The structure of the message flow is the following:

MQInput --> Compute --> SendMail

I have this code in the compute node

SET OutputRoot.XML = NULL;
CREATE PREVIOUSSIBLING OF OutputRoot.BLOB DOMAIN 'XML';
SET OutputRoot.XML.Message."From" = 'ces@ibla.es';
SET OutputRoot.XML.Message."To" = 'a@cuo.es;se.io@cuorks.es';

SET OutputRoot.XML.Message.Subject = InputBody.Me.Ds.H.Le;
SET OutputRoot.XML.Message.Body=InputBody.Me.Ds.H.Loe;

Thanks a lot
Back to top
View user's profile Send private message
marcin.kasinski
PostPosted: Thu May 10, 2007 1:34 am    Post subject: Re: How to get the "Cc" with the sendmail plugin n Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

Message structure below:

Code:
<Message>
<Rfc822Udf> </Rfc822Udf> (optional)
<From> </From>
<To> </To> (optional repeated)
<Cc> </Cc> (optional repeated)
<Bcc> </Bcc> (optional repeated)
<Subject> </Subject>
<Body> </Body>
<EncodingBase64 ContentType=" " Name=" "/>
<Encoding7Bit ContentType=" " Name=" ">
</Encoding7Bit>
</Message>


Code:
SET OutputRoot.XML.Message."From" = 'ces@ibla.es';
SET OutputRoot.XML.Message."To" = 'a@cuo.es;se.io@cuorks.es';
SET OutputRoot.XML.Message.Cc = 'a@cuo.es;se.io@cuorks.es';

_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
uliss
PostPosted: Fri May 18, 2007 1:45 am    Post subject: Reply with quote

Apprentice

Joined: 10 Jan 2007
Posts: 27

And If I need to write more than only one receiver?
How I have to do it?

This one it doesn't work:

SET OutputRoot.XML.Message."To" = 'a.com;b.com';

Neither this one:

SET OutputRoot.XML.Message."To" = 'a.com';
SET OutputRoot.XML.Message."To" = 'b.com';

Thank you
Back to top
View user's profile Send private message
marcin.kasinski
PostPosted: Fri May 18, 2007 2:09 am    Post subject: Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

uliss wrote:
And If I need to write more than only one receiver?
How I have to do it?

This one it doesn't work:

SET OutputRoot.XML.Message."To" = 'a.com;b.com';

Neither this one:

SET OutputRoot.XML.Message."To" = 'a.com';
SET OutputRoot.XML.Message."To" = 'b.com';

Thank you




Have you tried :

Code:
SET OutputRoot.XML.Message.To[1] = 'a.com';
SET OutputRoot.XML.Message.To[2] = 'b.com';

_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
uliss
PostPosted: Fri May 18, 2007 2:17 am    Post subject: Reply with quote

Apprentice

Joined: 10 Jan 2007
Posts: 27

Thank you very much but it doesn't work.
Back to top
View user's profile Send private message
marcin.kasinski
PostPosted: Fri May 18, 2007 2:22 am    Post subject: Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

uliss wrote:
Thank you very much but it doesn't work.



What does mean "it doesn't work" ?

Plugin sends one e-mail, none or something else, yoy get error, ... ?
_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
uliss
PostPosted: Fri May 18, 2007 2:32 am    Post subject: Reply with quote

Apprentice

Joined: 10 Jan 2007
Posts: 27

Hello,

if I put only one receiver, the node sends the email:

SET OutputRoot.XML.Message."To" = 'a.com@custom.com';

But I don't know how to send the email to more than one receiver.
I have tried these options:

1) SET OutputRoot.XML.Message."To" = 'a.com@custom.com;b.com@custom.com';

2) SET OutputRoot.XML.Message."To"[1] = 'a.com@custom.com';
SET OutputRoot.XML.Message."To"[2] = 'b.com@custom.com';

No errors in both of them. But the email doesn't arrive
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri May 18, 2007 3:40 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You're confusing Outlook with SMTP.

SMTP separates email addresses in the To line with commas, not semi-colons.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
uliss
PostPosted: Fri May 18, 2007 4:43 am    Post subject: Reply with quote

Apprentice

Joined: 10 Jan 2007
Posts: 27

Thank you,

It runs
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 » How to get the "Cc" with the sendmail plugin node
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.