Did anyone ever use the AddAttachmentStream function already?
I have attachments in a blob field for which I create an instream, but all I get is an empty file in the email...
There are no bugs, only random undocumented features...
---
My Blog:
http://NAV-Magno.be0
Answers
I'll let you know, if I know anything more.
---
My Blog: http://NAV-Magno.be
when SMTP is used to send notifications with attachments using a stream, if the stream is created from a record that is local and the send procedure is called from another function the attachment file arrives empty.
if the record is not local, or if the send function is called from the same function, or both together, the notification arrives with the attachment without problem.
I created attached test codeunit to proof my point to MS. Test1 fails, the other tests work as expected. MS already verified there should not be any limitation.
---
My Blog: http://NAV-Magno.be
and here: http://blogs.msdn.com/b/nav/archive/2013/02/27/add-attachment-stream-on-smtp-not-always-working.aspx
---
My Blog: http://NAV-Magno.be