|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
sending emails (with attachments) from mq |
« View previous topic :: View next topic » |
Author |
Message
|
regonda |
Posted: Thu Jul 01, 2010 5:19 am Post subject: sending emails (with attachments) from mq |
|
|
 Apprentice
Joined: 08 Apr 2008 Posts: 43
|
hello all,
we have a new requirement from our customer that the XML files which are sent from source system to our MQ have to be resent back to them in an email with XML file being sent as an attachment.
So far using sendmailplugin, we are only sending some data of the XML files as the content of the body but we have not tried sending the incoming XML back to the source system as an attachment.
Please let me know if this possible with sendmailplugin.
Thanks in advance.
Harish |
|
Back to top |
|
 |
regonda |
Posted: Thu Jul 01, 2010 5:43 am Post subject: |
|
|
 Apprentice
Joined: 08 Apr 2008 Posts: 43
|
if not email using sendmailplugin, is there any other way with which we can send the incoming XML files back to the source system.. may be using any channels, adapters.. etc etc... |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Jul 01, 2010 5:57 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Broker 6.1 and later has the EmailOutput node built in, that comes with samples.
Your customer sounds like they don't trust MQ for assured delivery, btw. |
|
Back to top |
|
 |
mqsiuser |
Posted: Thu Jul 01, 2010 12:59 pm Post subject: |
|
|
 Yatiri
Joined: 15 Apr 2008 Posts: 637 Location: Germany
|
Hello,
with the sendMailPlugIn you have to set 2 attributes and put the message in the "BLOB" field:
Code: |
SET OutputRoot.XML.Message.EncodingBase64.(XML.Attribute)ContentType = 'text/xml';
SET OutputRoot.XML.Message.EncodingBase64.(XML.Attribute)Name = 'message.xml';
SET OutputRoot.BLOB.BLOB = InputRoot.BLOB.BLOB; |
You have to create you blob in a way that the attachment will be XML. Try a reset-content descriptor. _________________ Just use REFERENCEs |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|