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

Sending email with Attachment problem

  • 1.  Sending email with Attachment problem

    Posted Tue December 21, 2004 10:15 AM

    Hi,

    I am trying to send an e-mail as an attachment using the smtp service. It is working fine if I map a local filename to the filename field in the smtp service, but not when I map the content.

    If I do a ftp get and map the content to the content part of the smtp service it works, but if I use the getfile service (used for localfiles) I get a ClassCast Exception. Has anybody seen this and what do you think can cause this.

    Thanks


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


  • 2.  RE: Sending email with Attachment problem

    Posted Mon December 27, 2004 07:34 PM

    When creating an email as an attachment, you have to map a value to the content input. A directory path will not work. I usually use pub.report:runStringTemplateOnPipe, then map “$txt” to the content field after I formatted the file the way I desire. I believe that body/bytes will also work.

    The ClassCast Exception is usually a JVM error.


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