
Hi
I have above error in my batch job class run method
My notes
1.The batch i have configured can able to perform other task like updating any table value
(I updated table value just to make sure that batch is proper)
2.I have pasted the same code in AOT Job where , the job is successful in sending mail
(So email parameters are correct)
3.Right now i don't have any attachments in sending mails.
4.Run on property for my class is set to "Called from"
5.Class is having runsImpersonated() method which is returning false
6.In Batch job "View task" setting the Run Location is server & i have not set any conditions.
7. I am testing the job in AOS Server itself (test server)
8.In Tools-->Options-->Development , Run business operations in CIL is checked I temporarily un cheked and tried still issue is there with error
Method 'send' in COM object of class 'CDO.Message' returned error code 0x80040211 (<unknown>) which means: <unknown>.
I got code from below link which is working fine in AOT Job . but not in batch job
https://www.tech.alirazazaidi.com/sending-email-using-x-code-dynamics-ax-2012/
please help me..
*This post is locked for comments
I have the same question (0)Hi
I found that after replacing SysMailer's sendMail(); method with quickSend();,
Now my batch job is working.