IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#TechXchangePresenter
 View Only
Expand all | Collapse all

Html from output template is arriving as text

  • 1.  Html from output template is arriving as text

    Posted Wed March 12, 2003 07:49 PM

    Hi:

    I am using a output template (html) populating values from
    pipeline (run template). The populated template is then
    emailed to end users using smtp service.

    The email client (lotus notes) is getting the output as text
    (contents of the html as seen in “view source”). What
    settings should be changed in either:

    1. run template
    2. smtp service so that the end user will get the html file.

    thanks.

    Laura


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 2.  RE: Html from output template is arriving as text

    Posted Wed March 12, 2003 07:50 PM

    You could pass the html file (which should be in your
    pipeline as a string) into the attachments parameter of the
    smtp service. Set the content-type to text/html.

    Will Kriski


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 3.  RE: Html from output template is arriving as text

    Posted Wed March 12, 2003 07:50 PM


  • 4.  RE: Html from output template is arriving as text

    Posted Tue March 18, 2003 12:12 AM

    Will and Laura,

    I am implementing the same solution as Laura. I followed Will’s suggestion and I have getting a different result. The html is not present in the email anywhere, the message body or as an attachment.

    I make a call to runTemplateOnPipe, map $txt to Attachment record | content and set the content type to text\html. Any other thoughts?


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 5.  RE: Html from output template is arriving as text

    Posted Tue March 18, 2003 12:57 AM

    Can you step through your flow to just before the smtp step to see if $txt is null/empty?

    Will


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 6.  RE: Html from output template is arriving as text

    Posted Tue March 18, 2003 04:53 PM

    Will, I have confirmed that $txt has the html from the template.


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 7.  RE: Html from output template is arriving as text

    Posted Wed March 19, 2003 02:32 PM

    Hi, Steve.

    As a sanity check, make sure of the following:

    1. The Lotus Notes client is able to accept HTML emails. Some users and/or System Administrators change the application preferences to disallow HTML emails. [*]Send the email to a Yahoo! email account and confirm that the message displays in HTML as expected.

    Let’s make sure that the template is doing its job before we attack the code.

    Let us know.


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 8.  RE: Html from output template is arriving as text

    Posted Wed March 19, 2003 03:27 PM

    I had attempted a posting yesterday, but I don’t see it now.
    I found the problem on yesterday, everything is working fine. I had a momentary brain fart. I had two different services, which are very similar in name and had the wrong one being called from the rule. Sorry to trouble you.
    –steve


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 9.  RE: Html from output template is arriving as text

    Posted Wed March 19, 2003 03:31 PM

    I think I speak for Will, too… Never a trouble! Glad you got the problem “fixed”. :wink:


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 10.  RE: Html from output template is arriving as text

    Posted Mon March 21, 2005 05:47 PM

    Hi,

    I’m trying to send a html email with a pdf attachment, but all i’m getting is an email with two attachments and nothing in the body text of the email. Can anyone suggest a solution? If I remove the pdf attachment the html attachment magically appears in the body text. How can I keep the html code as the body text and attach a pdf document to the email?

    Thanks,

    Gill


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods