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 » Sending Mail as HTML page from SendMailPlugIn.

Post new topic  Reply to topic
 Sending Mail as HTML page from SendMailPlugIn. « View previous topic :: View next topic » 
Author Message
kevin_22
PostPosted: Wed May 24, 2006 11:51 pm    Post subject: Sending Mail as HTML page from SendMailPlugIn. Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Thu May 25, 2006 4:08 am    Post subject: Reply with quote

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
View user's profile Send private message
kevin_22
PostPosted: Fri May 26, 2006 1:13 am    Post subject: Reply with quote

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
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 » Sending Mail as HTML page from SendMailPlugIn.
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.