Author |
Message
|
vdharanikota |
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);
...  |
|
Back to top |
|
 |
smdavies99 |
Posted: Mon Mar 02, 2015 11:26 pm Post subject: |
|
|
 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 |
|
 |
vdharanikota |
Posted: Tue Mar 03, 2015 1:15 am Post subject: |
|
|
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 |
|
 |
smdavies99 |
Posted: Tue Mar 03, 2015 1:41 am Post subject: |
|
|
 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 |
|
 |
mqjeff |
Posted: Tue Mar 03, 2015 6:01 am Post subject: |
|
|
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 |
|
 |
|