Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 175888

Method 'send' in COM object of class 'CDO.Message' returned error code 0x8004020F () which means: .

$
0
0

Hi All,

I am getting this error

Method 'send' in COM object of class 'CDO.Message' returned error code 0x8004020F (<unknown>) which means: <unknown>.

When I try to send email from job.

SysMailer mailer = new SysMailer();


mailer.quickSend(payables@testDomain.ae,

  "abc@testdomain2.com",

  "This is test email. Please ignore",

  "body",

  "",

  @\\ServerName\Vendor\test.pdf);

Note --> From email address and To email address are in different domain. (error occurred when these two domain are different, works fine when domain are same)

In PROD environment there are two AOS server --> AOS1, AOS2

Strange things happen when above piece of code works fine in AOS2 and gives error in AOS1.

Any one can tell me cause of this error and how can I resolve it.

Thanks in advance

 

 

SysMailer mailer = new SysMailer();

mailer.quickSend(payables@testDomain.ae,

"abc@testdomain2.com",

"This is test email. Please ignore",

"body",

"",

@\\ServerName\Vendor\test.pdf);


Viewing all articles
Browse latest Browse all 175888

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>