AL icon indicating copy to clipboard operation
AL copied to clipboard

Send E-Mails with PDF attachments in a background batch (REPORT.SAVEASPDF)

Open MaKnauer opened this issue 9 years ago • 6 comments

The functions SaveAsPDF, SaveASExcel, SaveAsWord, SaveAsHtml are no longer available in extensions V2. We need a functionallity to send mails with attachments (NAV Reports as PDF) via a background batch job. How can we make it work? Perhaps you can provide a function to send a mail via SMTP with an attached outstream?

MaKnauer avatar Nov 27 '17 13:11 MaKnauer

We are currently looking into the area of sending email file attachements.

StanislawStempin avatar Nov 27 '17 16:11 StanislawStempin

Can you tell me when this "future update" will be there? printing-in-code is quite necessary for many extensions...

waldo1001 avatar Dec 12 '17 16:12 waldo1001

We are aiming at getting the update out before the end of the year.

thpeder avatar Dec 13 '17 11:12 thpeder

@StanislawStempin I still have this issue on AL Language version 0.14.17461?

image

It this yet to be delivered?

ivandjordjevic avatar Mar 08 '18 08:03 ivandjordjevic

We should have been more clear when closing this issue. The solution provided was the second part of he original suggestion: "Perhaps you can provide a function to send a mail via SMTP with an attached outstream?" We did exactly that, have a look at the new function COD260.EmailFileFromStream

StanislawStempin avatar Mar 08 '18 08:03 StanislawStempin

Will look into it. Thanks!

ivandjordjevic avatar Mar 08 '18 09:03 ivandjordjevic