AX fail to send mail by SMTP , COM error code 0x80040211, 0x8004020f

The error code is as below:

 

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

 

How To Fix This:

If you get any errors related to SMTP transport then the cause is either SMTP settings (relay address/port, relay authentication parameters, etc), or email settings (for instance, invalid/prohibited to/from/cc/bcc addresses), but not in the SysMailer class.
Steps to fix this: 
first, make sure the SMTP server is working, and your account and password are right.
If you are using your own company's SMTP, one way to check the SMTP is using telnet, please refer to this
 
Then you need to check you setup Email parameters properly in your AX.
 
Please pay attention to 'UserName', sometimes it is a matter whether you input the full name or only user name.
 
e.g. if you are using gmail, and your account is test@gmail.com. you may face error 0x80040211 if you input 'test@gmail.com' as 'UserName', you must input 'test' as the 'UserName'.
 
But most of the time, you may input 'test@gmail.com'.
COM error 0x8004020f: The server rejected one or more recipient addresses
This is happening because your SmtpMail.SmtpServer is rejecting addresses.
  • Make sure all email addresses specified at MailMessage.To, MailMessage.Cc, MailMessage.Bcc and MailMessage.From are valid email addresses.
  • Make sure you have permissions to relay through the server.
  • Make sure the MailMessage.From has permissions to relay through the server.

    Please check you email especially when you use a address filter!

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值