web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

0x8004020E error while sending email via batch

(0) ShareShare
ReportReport
Posted on by 1,673

Hi everyone

I'm getting this error while sending emails via batch from Ax 2009 (SP1, RU8) : 

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

From what I can tell (https://msdaxerp.wordpress.com/2013/03/12/cdo-message-returned-error-code/), the error code means:

The server rejected the sender address. The server response was: %1

Here are some observations:

- There are no customizations involved here. Everything used here is standard Ax

- Email parameters are configured correctly (using google smpt relay server)

- This error occurs whether the username is filled in or not (no password supplied)

- All public ips are whitelisted on the server, so no authentication requirement

- I can send emails from the server via Telnet

- I can send emails from Ax via job (client sided code), (but only if the from address is within the domain. This is a good indication to me that things are configured correctly)

- The the batch job  of the report sending and the email distribution job both run using an admin account. The error occurs if this account has a completely invalid email address, a correct email address, or no email address at all

- There are no visible stops/blocks on the SMTP side

I've looked at several posts but none have helped. Some include:

https://community.dynamics.com/ax/f/microsoft-dynamics-ax-forum/12848/sysmailer-send-email-error?pifragment-109373=1#responses

https://cloudblogs.microsoft.com/dynamics365/no-audience/2015/08/27/isolate-issues-related-to-e-mail-not-sending-from-dynamics-ax-2012-using-the-smtp4dev-tool/

mainly: https://community.dynamics.com/ax/f/microsoft-dynamics-ax-forum/236612/emails-dispatching-batch-job-not-sending-mails

Any help appreciated.

Thanks

I have the same question (0)
  • WillWU Profile Picture
    22,361 on at

    Hi BrandonSA,

    It seems that TLS autentication which you need is not supported in AX.

    translate.google.es/translate

    Try this link(translated from spanish) to meet the requirement of TLS security.

  • BrandonSA Profile Picture
    1,673 on at

    Thank you Will WU

    I'll run some tests to check whether it's TLS or not - thank you for the suggestion.

    If it's a TLS issue, why would I still be able to run it from a client sided job?

    Thanks

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 503 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 434 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans