webMethods

webMethods

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.

 View Only
  • 1.  SMTP service error while sending word doc attachments

    Posted Thu November 06, 2003 06:36 PM

    Have you checked the MIMETYPES file located on the IntergrationServer6.01/lib folder, whether that file has application/msword setting included?


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


  • 2.  RE: SMTP service error while sending word doc attachments

    Posted Thu November 06, 2003 06:48 PM

    Hari,

    I helive you are using IS6.01 server,then “application/msword” setting is there by default located in webMethods6\IntegrationServer\lib\mime.types (TYPES file).Any way please make sure this setting at your side.
    I believe this is the only configuration settings place to check for a new content-types to accept.

    HTH.


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


  • 3.  RE: SMTP service error while sending word doc attachments

    Posted Thu November 06, 2003 07:30 PM

    Hi RMG,
    Thanks for the reply. Yeah, mime.types file contains application/msword mime type. Do I have to do anything else? please let me know your comments. Are you able to send emails with attachments?

    Thanks,
    Hari


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


  • 4.  RE: SMTP service error while sending word doc attachments

    Posted Thu November 06, 2003 07:42 PM

    I haven’t experienced anytime sending of worddocuments via SMTP, but i believe that particular content-type setting should allow the send email successfully in 6.01.(since these settings allow flatfiles/excelfiles… process email successfully).

    As a last chance, please contact tech support.

    Thanks,


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


  • 5.  RE: SMTP service error while sending word doc attachments

    Posted Thu November 06, 2003 07:50 PM

    First place,Encoding is not required.content-type “text/xml” should work fine.


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


  • 6.  RE: SMTP service error while sending word doc attachments

    Posted Fri November 07, 2003 12:01 AM

    Hari,

    I’m not sure how you are obtaining your XML document. If you are reading it from the file system using the pub.file:getFile service you may be setting the “loadAs” parameter to “stream” instead of “bytes”.

    If you load the document from the file system as a byte array, you can convert it to a string using the pub.string:bytesToString service. You can then map the resulting string into the content variable inside the attachments recordList of the pub.client:smtp service. I set the contentType to “text/xml” and provided a filename to use for the attachment.

    My working example looks like this:

    Regards,

    Mark Carlson
    Conneva, Inc.
    mcarlson@conneva.com


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


  • 7.  RE: SMTP service error while sending word doc attachments

    Posted Fri November 07, 2003 02:26 AM

    Hi Mark Carlson,
    Thank you very much for that info. It worked. My mistake was that I did not set the “content” object at all, I just set the “filename” with a valid full path of an existing file in my system. I was under the impression that my local file would be picked up automatically.

    Thanks a lot again,
    Hari.


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