Hello, in my implementation AX is capable of sending e-mails with attachments (i.e invoice documents) without any problem.
For example with the AX client I can go in the invoice journal select hundreds of invoices and select "Use print management" under the "Preview/Print menu".
I did setup recently a batch job that generates invoices and use print management using the standard AX functionality in Accounts Receivable - Periodic - Sales Update - Invoice. The job completes though in the log I see that for some invoices (not all) AX is generating the following error message :
"The message could not be sent to the SMTP server. The transport error code was 0x80040217. The server response was not available
Exception has been thrown by the target of an invocation. The message could not be sent to the SMTP server. The transport error code was 0x80040217. The server response was not available"
Of course if I go in invoice journal, select those documents and "Use print management" no errors at all
I have been digging but not able to find the cause. Checked the SMTP logs and there are no errors. Checked the event viewer of the server and there are no errors.
Is there someone who generates and sends invoice documents in a batch mode? did you ever experience such an error?
I do have an idea, that it may be cause by the fact that batch are multi-threading so in certain moment one thread is conflicting with another when invoking the SMTP server. Any idea if it is possible to force a batch job to run single-thread?
Thanks in advance for your help
Regards