Skip to Content
1

Adding Multiple attachments in email in sap IDM 8.0

Jun 05, 2017 at 03:53 PM

121

avatar image
Former Member

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

10 |10000 characters needed characters left 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.

0
* Please Login or Register to Answer, Follow or Comment.

4 Answers

Best Answer
Lambert Boskamp Jun 08, 2017 at 07:30 AM
1

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


Share
10 |10000 characters needed characters left characters exceeded
Dominik Trui Jun 08, 2017 at 01:30 PM
0

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 :)

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Jul 28, 2017 at 11:52 AM
0

Thanks Lambert,

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Jul 28, 2017 at 11:54 AM
0

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..

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Hi Mano,

I have no experience with inline images, sorry. But a quick check on Stackoverflow indicates you can use a data URL. I'd recommend checking whether that works for you.

Kind regards,

Lambert

0
Former Member
Lambert Boskamp

Hello Lambert,

No luck, still cross mark in email draft, but thanks for the suggestion:)

regards

Mano

0