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

Announcements

No record found.

News and Announcements icon
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,225 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,225 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 653

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 501 Super User 2026 Season 1

#3
CP04-islander Profile Picture

CP04-islander 298

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans