Skip to Content
0
May 30, 2018 at 10:52 AM

File not getting attached in mail

193 Views

Hi All,

I came across a requirement where i need to send a file as attachment to a mail in SAP UI5. Since sap.m.URLHelper.triggerEmail does not support this, i was trying to do this with a simple javascript code but even this does not work for me:

window.open("mailto:testMailid?subject=testSubject&body=testBody&attachment='file:///C:/Users/<PATH>/Flight.jpg'")

The file is not getting attached to the mail. Can anyone please help for the same ?