|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Sending Mail as HTML page from SendMailPlugIn. |
« View previous topic :: View next topic » |
Author |
Message
|
kevin_22 |
Posted: Wed May 24, 2006 11:51 pm Post subject: Sending Mail as HTML page from SendMailPlugIn. |
|
|
 Centurion
Joined: 08 Mar 2005 Posts: 100
|
I am with Message Broker v6. and Installed SendMailPlugIn (IA07).
I am able to send E-Mails with html or text attachments.
please check following code.
Code: |
CREATE FIELD OutputRoot.XML.Message Type Name;
CREATE FIRSTCHILD OF OutputRoot.XML.Message Domain('XML') Name 'To' VALUE 'abcd@abc.com';
CREATE LASTCHILD OF OutputRoot.XML.Message Domain('XML') Name 'Subject' VALUE 'this is subject';
CREATE LASTCHILD OF OutputRoot.XML.Message Domain('XML') Name 'Body' VALUE 'check attachments';
CREATE FIELD OutputRoot.XML.Message.EncodingBase64.ContentType Type NameValue VALUE '"html"';
CREATE FIELD OutputRoot.XML.Message.EncodingBase64.Name Type NameValue VALUE 'attachment.html';
SET OutputRoot."BLOB"."BLOB" = BITSTREAM(InputBody);
|
upto that everything is fine and i am getting attachments.
But I need to get that html attachment, in e-mail itself.
I mean, html should not be as an seperate attachment. in E-Mail itself it should display as normal message. Is it possible?
Somebody can help me out.
thanks in advance.
-Kevin. |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu May 25, 2006 4:08 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
First off, use ASBITSTREAM. DO NOT use BITSTREAM.
This has nothing to do with your problem.
Secondly, the Body of the message is the field that contains the part of the message that is neither Headers nor Attachment.
So I would assign the ASBITSTREAM results to OutputRoot.XML.Message.Body, and not to OutputRoot.BLOB.BLOB.
And don't base64 encode it. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
kevin_22 |
Posted: Fri May 26, 2006 1:13 am Post subject: |
|
|
 Centurion
Joined: 08 Mar 2005 Posts: 100
|
Hai Jeff,
I have tried as per your suggestion.
Code: |
SET OutputRoot.XML.Message.Body = ASBITSTREAM(InputBody); |
and i deleted that base64 code.
But still i 'm getting error like Wrong type exception (BLOB, Character)
In Debug, I found that Input message coming to compute node is BLOB.
So i thing i need to convert first BLOB to Character. Is it possible?
what do you say ?
thanks
Kevin[/i] |
|
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
|
|
|
|