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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  SMTP ERROR

    Posted 05/05/05 07:49 PM

    Hi all,

    I am trying to send an xml as an attachment to my own email id,
    i am invoking the following services
    pub.file.getFile(Input(sample.xml)
    pub.flow.bytesToString
    pub.client.smtp
    to(myname@yahoo.com)
    from(myname@yahoo.com)
    mailhost(xyz.org)
    body
    filename(what should i specify here) if i dunot specify this its saying file not specified

    Thank’s
    Rohit


    #Integration-Server-and-ESB
    #webMethods
    #webmethods-Protocol-and-Transport


  • 2.  RE: SMTP ERROR

    Posted 05/05/05 08:11 PM

    Regarding mailhost can i mention any one of these (where xyz is my company mailhost name)

    smtp.xyz.org
    mail.xyz.org
    xyz.org
    xyz


    #Integration-Server-and-ESB
    #webMethods
    #webmethods-Protocol-and-Transport


  • 3.  RE: SMTP ERROR

    Posted 05/05/05 08:45 PM

    Rohit,

    I think you have something set/specified within the attachments list(documentList) and its looking for the fileName to be sent as attachment. AttachmentsList and fileName are optional.
    You can use any mail host name style as long it is valid/resolvable.

    ~tS


    #webMethods
    #Integration-Server-and-ESB
    #webmethods-Protocol-and-Transport


  • 4.  RE: SMTP ERROR

    Posted 05/05/05 08:46 PM

    Hi Rohit,

    pub.file.getFile(Input(sample.xml) loadas Bytes

    pub.client.smtp

    map Body/bytes to attachements/content , contenttype as text/xml and filename as sample.xml

    It will send xml file as attachement


    #webMethods
    #Integration-Server-and-ESB
    #webmethods-Protocol-and-Transport


  • 5.  RE: SMTP ERROR

    Posted 05/05/05 08:49 PM

    Rohit,

    Under Attachments input map the content object(with bytes)and set the filename(any thing you specify).

    HTH,
    RMG


    #webmethods-Protocol-and-Transport
    #Integration-Server-and-ESB
    #webMethods


  • 6.  RE: SMTP ERROR

    Posted 05/05/05 09:48 PM

    Thanks guys its working fine when i made a mapping change from body/content,

    Cheers
    Rohit

    (Learn From leaders)


    #webmethods-Protocol-and-Transport
    #Integration-Server-and-ESB
    #webMethods