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 519

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

  • kvnkk Profile Picture
    kvnkk 800 on at
    RE: The Transport failed to connect to the server issue in AX 2012 R2

    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

  • Vignesh R Profile Picture
    Vignesh R 519 on at
    RE: The Transport failed to connect to the server issue in AX 2012 R2

    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

  • Suggested answer
    A.Prasanna Profile Picture
    A.Prasanna 8,177 on at
    RE: The Transport failed to connect to the server issue in AX 2012 R2

    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
    Vignesh R 519 on at
    RE: The Transport failed to connect to the server issue in AX 2012 R2

    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
    A.Prasanna 8,177 on at
    RE: The Transport failed to connect to the server issue in AX 2012 R2

    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
    Vignesh R 519 on at
    RE: The Transport failed to connect to the server issue in AX 2012 R2

    Hi All,

    Any suggestion here?

    waiting for reply!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          

    Thanks and Regards,

    Vignesh

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,403 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans