Skip to Content
avatar image
Former Member

Adding Multiple attachments in email in sap IDM 8.0

Hello Everyone,

we having issue in attaching multiple attachments in an email notification job that we are using it in SAP IDM 8.0

we are using Javscript internal function

UsendSMTPMessage()

question: am i able to attach multiple attachment using this function, if yes how?

Kindly help me out here to fix this

Add comment
10|10000 characters needed characters exceeded

  • Hello there,

    maybe you could start by telling us which issue you have exactly. ;)

    Errors? Nothing happens? Where do you need help? Please provide more details.

    .

    Regards,

    Steffi.

  • Get RSS Feed

4 Answers

  • Best Answer
    Jun 08, 2017 at 07:30 AM

    I think the error that will occur if you try to attach more than one file using the pipe syntax suggested by uSendSMTPMessage documentation is the following:

    I've tested this on 8.0 SP4, and it has been broken like this since SAP IDM 7.2. The workaround that I use to send multiple attachments is to create a single ZIP file including all the attachments needed, and then send this ZIP file as a single attachment. A working script to create a ZIP file from one or more input files in SAP IDM can be found here.

    Kind regards,

    Lambert

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 08, 2017 at 01:30 PM

    Multiple files worked in 7.1, really? Cannot remember that though.

    ZIP files or an own mail implementation are the only working solutions I can think of. What also could work: Embedding the files in the HTML code somehow like this:

    <img src="data:image/png;base64, <put base64 code in here>" alt="Test picture" />

    Never tried, but could work, too.

    The script is cool. If I ever need it, I hope I remember this thread :)

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 28, 2017 at 11:52 AM

    Thanks Lambert,

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 28, 2017 at 11:54 AM

    Thanks Lambert,

    I can try that out to attachment!!, one more question , is it possible to bring image as inline of body of email, as i could not do it, it comes like an attachment .everytime, thats why i cannot attach files that i want to send .

    Thanks!!

    Mano..

    Add comment
    10|10000 characters needed characters exceeded