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
Expand all | Collapse all

Sending email with attachment - Content-Disposition

  • 1.  Sending email with attachment - Content-Disposition

    Posted Tue July 14, 2020 09:10 PM

    I am trying to send an email with the image along with the HTML body .
    With the help of content-ID , i am able to display the image in the body where as the image should not be displayed as an attachment .
    Please let me know how can i change the content-disposition while sending the email


    #webMethods


  • 2.  RE: Sending email with attachment - Content-Disposition

    Posted Wed July 15, 2020 01:24 AM

    Hi Harinadh,

    It would be good and helpful if you have explained or add a snippet of steps that you are following to achieve it- along with this request.
    Anyway you can try following steps if these are helpful:

    • Add image at right place in html content
    • convert html content string into byte and then stream
    • add generated stream in attachments[0]/content of smtp service input
    • mention attachments[0]/contenttype as text/html

    Verify results if these are helping to achieve it.

    Thanks!!
    Kuldeep Gupta


    #webMethods