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, ...
Suggested Answer

The Transport failed to connect to the server issue in AX 2012 R2

(0) ShareShare
ReportReport
Posted on by 535

Hi Experts,

We are trying to setting up batch to send a mail to user's with report attachment. During this process,

we are getting an error "Method 'send' in COM object of class 'CDO.Message' returned error code 0x80040213 (<unknown>) which means: The transport failed to connect to the server." in batch log. 

I think people are discussed about this issue in AX forum but still didn't find any answer in forum. 

Anyone help here to resolve this issue.

Thanks and Regards,

Vignesh Ramasamy

I have the same question (0)
  • Vignesh R Profile Picture
    535 on at

    Hi All,

    Any suggestion here?

    waiting for reply!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          

    Thanks and Regards,

    Vignesh

  • Suggested answer
    A.Prasanna Profile Picture
    8,223 on at

    Have you setup SMTP relay

    docs.microsoft.com/.../configure-email-functionality-in-microsoft-dynamics-ax.

    just cross check and revert back with your result

    thanks & Regards,

    Amith Prasanna

  • Vignesh R Profile Picture
    535 on at

    Hi Amit,

    We are able to telnet the smtp port. There is no problem  with firewall also.

    In AX, we are getting the error, "Method 'send' in COM object of class 'CDO.Message' returned error code 0x80040213 (<unknown>) which means: The transport failed to connect to the server."

    Any other suggestion here to check?

    Thanks and regards,

    Vignesh

  • Suggested answer
    A.Prasanna Profile Picture
    8,223 on at

    this is written for AX 4.0 but hope this will help

    support.microsoft.com/.../error-message-when-you-try-to-programmatically-send-an-e-mail-message

    Thanks & Regards,

    Amith Prasanna

  • Vignesh R Profile Picture
    535 on at

    Hi Amit,

    I am able to send a report without batch job.

    If I put the report in batch mode to send a report to users then I am getting the error.

    Kindly suggest here to resolve this issue.

    Thanks and regards,

    vignesh

  • kvnkk Profile Picture
    800 on at

    Hi,

    try to  debug the code in batch and you may get some clue. Mostly these issue comes when you are using client methods in batch/server side code.

    Try to test e-mail sending is working in batch without attachment.

    Next try with attachment to identify the issue.

    Below link may help u.

    aslam111.blogspot.com/.../how-to-send-normal-ax-reports-as-pdf.html

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 646 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans