Posted: Mon Mar 02, 2015 11:01 pm Post subject: Problem with email output node while sending attachment
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);
...
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.
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
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