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 » General IBM MQ Support » sending emails (with attachments) from mq

Post new topic  Reply to topic
 sending emails (with attachments) from mq « View previous topic :: View next topic » 
Author Message
regonda
PostPosted: Thu Jul 01, 2010 5:19 am    Post subject: sending emails (with attachments) from mq Reply with quote

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
View user's profile Send private message
regonda
PostPosted: Thu Jul 01, 2010 5:43 am    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Thu Jul 01, 2010 5:57 am    Post subject: Reply with quote

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
View user's profile Send private message
mqsiuser
PostPosted: Thu Jul 01, 2010 12:59 pm    Post subject: Reply with quote

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
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 » General IBM MQ Support » sending emails (with attachments) from mq
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.