If I understood you correctly, you have two ways to accomplish this: you can use either SMTP or Exchange batch email provider.
1.If you are using SMTP then you have to specify @USEREMAIL@ placeholder in the From field and enter buyers’ email addresses in Docentric AX parameters > Emailing in Additional email sender accounts.
2. If you are using Exchange leave From field empty so that the current user email address, specified in User options, will be used as a sender address. It seems to me that this should be an easier approach to your request.
One reason that could be preventing you to send is the MFA. Do you perhaps use multi-factor authentication for your account? Please check this link:
If you do, then it will not be possible to send the emails from D365FO with this account. You/your administrator have to disable MFA first. If you cannot do this, you can still try to set this up via Exchange.
Setup for Exchange
Could you please:
Delete all entries from the Additional email sender accounts table:
Explanation:
These entries are intended to be used with third-party emailing systems, such as SendGrid, and not in the combination with the internal company accounts. When you use @USEREMAIL@ placeholder in the From field on the Email print destination, the following happens:
Docentric replaces the @USEREMAIL@ placeholder with the email address of the sender
Docentric searches for this email address in the Additional email sender accounts table
Because the matching entry is found, Docentric instantiates an SMTP client with the credentials from this table.
Remove the @USEREMAIL@ placeholder from the From field in the Email print destination.
Explanation: When the From field is empty, and Exchange batch email provider is selected, the user email that is configured in User options will be used for sending the email.
Based on your answer, I believe that the problem is definitely related to the use of different domains on your and the customer side. This is the standard AX behaviour and Docentric has not made any changes there.
If you are working on some client’s environment, then the sender email has to be defined from that domain (e.g. xyz@customer.com).
If that is not the case, Exchange will not recognize the sender’s address and will return an Unauthorized error message. I think that may be the problem in your case because you are working on client side, but you are using your email address which uses a different domain.
You can perform two additional tests to confirm this.
Test sending from another email account
Go to User Options > Account
For the Sender email enter an email address from the client’s domain (on first image below I entered the email from my colleague but on my D365FO user account) Save and close the form.
Go to Email parameters > Test email where you should see that same email address in the Will send as field as you have previously entered at the User options. If not, please refresh the form.
As for the Send to, please use an email address that you are able to access. Click Send test email.
If the email is successfully sent, try to print to Email from Print management with the same settings.
Client-side testing
Ask a user on the client side to send a test email. If this succeeds, repeat the sending of the emails from Print management. Please try to do the tests I mentioned and let me know the results. Do not hesitate to write back if the problem persists.