Error Message: {"error":{"code":"ErrorSendAsDenied","message":"The user account which was used to submit this request does not have the right to send mail on behalf of the specified sending account., Cannot submit message."}}

I just connected Gravity SMTP to my website. I am using the Microsoft Integration which requires configurations and creation of an app within our companies Microsoft Azure account. I was getting confirmations all along the way until I tried to do my first test. The error message is as follows:

{“error”:{“code”:“ErrorSendAsDenied”,“message”:“The user account which was used to submit this request does not have the right to send mail on behalf of the specified sending account., Cannot submit message.”}}

I am not sure where I need to start to troubleshoot this issue? Is it in the Gravity SMTP app? Is it in Microsoft Azure?

Any help will be much appreciated.

That usually means that you are trying to send email From a different email address than the one you connected to Microsoft with. Be sure you have set the “Default From Email” address to the same one that you connected with, and also toggle the “Force From Email” to ensure that email address is used. Then test the integration again. If you still have an error, please open a Gravity SMTP support ticket and include your system status report:

https://www.gravityforms.com/open-support-ticket/technical/

Thank you.

Thank you so much for your help. Those recommendations helped. I do have a question regarding the integration with Microsoft.

It appears that the integration required my email address to register the app within Azure.

So, does that mean if I want to have a different email address sending the emails I have to register the app using that different email address?

Example: Right now it is using my email address of trey@standardenzyme.com. So, if I want to have office@standardenzyme.com as the email, do I have to register it with the office email address in Azure?

Yes, you need to create the app and connect with the same address you want to send from. If you need to send from different email addresses at the domain, I recommend using an integration other than Microsoft, Google, or Zoho Mail. The rest of the integrations will allow you to validate the domain, then send email from any email address at that domain.