Author |
Message
|
uliss |
Posted: Thu May 10, 2007 12:32 am Post subject: How to get the "Cc" with the sendmail plugin node |
|
|
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 |
|
 |
marcin.kasinski |
Posted: Thu May 10, 2007 1:34 am Post subject: Re: How to get the "Cc" with the sendmail plugin n |
|
|
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 |
|
 |
uliss |
Posted: Fri May 18, 2007 1:45 am Post subject: |
|
|
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 |
|
 |
marcin.kasinski |
Posted: Fri May 18, 2007 2:09 am Post subject: |
|
|
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 |
|
 |
uliss |
Posted: Fri May 18, 2007 2:17 am Post subject: |
|
|
Apprentice
Joined: 10 Jan 2007 Posts: 27
|
Thank you very much but it doesn't work. |
|
Back to top |
|
 |
marcin.kasinski |
Posted: Fri May 18, 2007 2:22 am Post subject: |
|
|
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 |
|
 |
uliss |
Posted: Fri May 18, 2007 2:32 am Post subject: |
|
|
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 |
|
 |
jefflowrey |
Posted: Fri May 18, 2007 3:40 am Post subject: |
|
|
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 |
|
 |
uliss |
Posted: Fri May 18, 2007 4:43 am Post subject: |
|
|
Apprentice
Joined: 10 Jan 2007 Posts: 27
|
|
Back to top |
|
 |
|