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 :
Microsoft Dynamics AX (Archived)

_COM.error() SMTP can't send email

(0) ShareShare
ReportReport
Posted on by

Hi everyone,

I have a form with a few records with email and smtp server. When i register e.g., a invoice, the procces search the email of the client, and in this table, search one of these emails to put as FROM. When i have one record of each type (clien and provider, altogether 2 records) the procces works fine, send the email. But when i have 3 records (2 for client, 1 for provider) when i try to send email i get the next error:

-->

Error sending mail in : No se pudo enviar el mensaje al servidor SMTP. El código de error de transporte fue 0x80040217. La respuesta del servidor fue not available
(0x80040211)

I search in internet and get:

0x80040217

The transport was unable to log on to the server.

0x80040211

The message could not be sent to the SMTP server. The transport error code was %2. The server response was %1

And on code, the sentence who throw the error is in SysMailer\sendMail() --> 

 comErr = _COM.error();
         if (comErr)
         {
             ret = checkFailed(strfmt(@"Error sending mail in %1: %2 (0x%3)",
                                     comErr.source(),
                                     comErr.description(),
                                     int2hex(comErr.number())
                              ));
         }


I can't get in to this method so i dont know how to solve this problem.

Im using AX 2009

The table:

tablacorreos.png

I don't know what's the problem. Any ideas?

Thanks

*This post is locked for comments

I have the same question (0)
  • Martin Dráb Profile Picture
    237,884 Most Valuable Professional on at

    Are you sure that your email server allow any address as FROM? It's not usually the case.

  • Community Member Profile Picture
    on at

    Hi Martin,

    I don't have any problem with other cases, which have XXX@compay.com

    The code works, emails and passwords are corrects, I think it is problem of the server configuration, but i dont know because i don't know much about smtp in AX

  • Martin Dráb Profile Picture
    237,884 Most Valuable Professional on at

    Can you elaborate what you mean by "I don't have any problem with other cases, which have XXX@compay.com" and how does it answer my question? Do you mean that it works for some addresses with domain compay.com (but not all) and therefore you assume that it should work for all addresses with the same domain?

  • Community Member Profile Picture
    on at

    Im sorry if I have not explained myself well.

    I mean, im using 3 emails accounts, the three of them have the same domain. I thought that the domain was the important thing. How can you know if the addess is allowed?

    ADD: the email address is correct because when there is only ONE email address in the table, both emails works fine (separated ways). The problem is when you have the two reords in table at the same time (the two emails address). Only the last one you add not working. 

    2746.email.png

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans