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 » Problem with email output node while sending attachment

Post new topic  Reply to topic
 Problem with email output node while sending attachment « View previous topic :: View next topic » 
Author Message
vdharanikota
PostPosted: Mon Mar 02, 2015 11:01 pm    Post subject: Problem with email output node while sending attachment Reply with quote

Novice

Joined: 07 Jul 2014
Posts: 18

Hi all,
Hope all are doing well. I have requirement to send an email with an attachment. I do have the data in Environment variables and esql code is as follows...

SET OutputRoot.EmailOutputHeader.From = '<vdharanikota@xyz.com>';
SET OutputRoot.EmailOutputHeader.To = '<vdharanikota@xyz.com>';
SET OutputRoot.EmailOutputHeader.Subject ='Test Message';
SET OutputLocalEnvironment.Destination.Email.BodyContentType = 'text/html;charset=utf-8';
SET OutputLocalEnvironment.Destination.Email.Attachment.Content= Environment.Variables.Records;
SET OutputLocalEnvironment.Destination.Email.Attachment.ContentType = 'text/plain';
SET OutputLocalEnvironment.Destination.Email.Attachment.ContentName= 'Details';
SET OutputLocalEnvironment.Destination.Email.Attachment.ContentEncoding = '7bit';
SET OutputRoot.BLOB.BLOB = CAST('Please Refer the Attachment' AS BLOB CCSID 1208);
...
Back to top
View user's profile Send private message
smdavies99
PostPosted: Mon Mar 02, 2015 11:26 pm    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

You don't give us any indication as to what problems you are seeing in your post?
I know we are pretty good at solving problems but the supply of 'Magic Fairy Dust' is a bit limited these days

Also, there are a good number of other posts in this forum relating to sending of attachments to emails. Please take some time to read them.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
vdharanikota
PostPosted: Tue Mar 03, 2015 1:15 am    Post subject: Reply with quote

Novice

Joined: 07 Jul 2014
Posts: 18

Thanks for your quick response...
I have already read some posts in this forum... and I'm able to send the mails with attachment also... but my problem is that... In my attachment I'm unable to get the data that was already saved in environment variables
Back to top
View user's profile Send private message
smdavies99
PostPosted: Tue Mar 03, 2015 1:41 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

What does a Tracenode placed just before the EmailOutputNode and set to output
Code:

${LocalEnvironment}


show?

Run a test message with the debugger DISABLED but with usertrace setup.

Then you can see where things go wrong.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Mar 03, 2015 6:01 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

What parser is the data at
Quote:

SET OutputLocalEnvironment.Destination.Email.Attachment.Content= Environment.Variables.Records;
created under?
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 » Problem with email output node while sending attachment
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.