Author |
Message
|
sankritya |
Posted: Fri Feb 22, 2008 4:47 am Post subject: Attachment in E-Mail Output node |
|
|
Centurion
Joined: 14 Feb 2008 Posts: 100
|
Hi All,
I am facing a small problem.In a simple msgflow with MQInput-> Compute->MQOutput I have attached the catch and failure terminal of the MQInput node to the EmailOutput. I want to send the exception generated in flow as attachment to a address.In attachment content field i have written $ExceptionList by browsing from the available menu.Other properties are set as:
Attachment content type: Text/xml
Attachment Content Encoding: 7bit:no encoding used for ASCII
Multipart Content Type: mixed :MIME each body part is indeopendent of others.
I am sending an XML message .
The problem is : Email is coming to the mail along with the attachment but attachment is blank.It is not populated with exception list. |
|
Back to top |
|
 |
Vitor |
Posted: Fri Feb 22, 2008 4:49 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
The Search Button is Your Friend. Sending e-mails with attachments has been discussed many times.  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Feb 22, 2008 6:33 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Vitor wrote: |
The Search Button is Your Friend. Sending e-mails with attachments has been discussed many times.  |
Yes, but not actually with the new EmailOutput node in v6.1... _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Vitor |
Posted: Fri Feb 22, 2008 6:41 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
jefflowrey wrote: |
Vitor wrote: |
The Search Button is Your Friend. Sending e-mails with attachments has been discussed many times.  |
Yes, but not actually with the new EmailOutput node in v6.1... |
Really? That's twice today!
Time to stop posting for a while....  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqmatt |
Posted: Fri Feb 22, 2008 7:52 am Post subject: |
|
|
 Grand Master
Joined: 04 Aug 2004 Posts: 1213 Location: Hursley, UK
|
I may be talking utter gibberish here (more than usual), but $ExceptionList is a tree, and the attachment content field is expecting a node element that contains either a BLOB or a text reference to another element.
MBDocs for Attachment Content Field wrote: |
Either the actual attachment (BLOB/text), or an XPath or ESQL expression that references an element; for example, an element in the message tree or LocalEnvironment. The value of the referenced element is taken as the content of the attachment.
If the element is a BLOB, it is an attachment.
If the element is text, check to see if it can be resolved to another element in the message tree or LocalEnvironment. If it can be resolved, use that element. If it cannot be resolved, add this element as the attachment.
|
You may need to serialise the exception list as a BLOB before adding it to the attachment content. |
|
Back to top |
|
 |
jharringa |
Posted: Fri Feb 22, 2008 12:50 pm Post subject: |
|
|
Acolyte
Joined: 24 Aug 2007 Posts: 70
|
One other thing to make sure of is that you're compute node has the Compute mode of "LocalEnvironment and Message" in the Basic tab.
That one was a head-slapper for me when I first started using EmailOutput. |
|
Back to top |
|
 |
|