
In this article we will see Microsoft’s new functionality in version 17.1 for handling emails from Business Central. You can enable this feature from Feature Management page. With help of this functionality we can setup many email accounts for different different scenarios.
Now we will go to SMTP Mail Setup page. And you can see in this image after enable this feature we got notification for replacing with this new feature.
We can see on Set Up Email Now we are not limited only to the SMTP setup, but we can also use Microsoft 365 mailboxes or Current User as sender. If you want also there is a possibility to extend the list with your own email provides. The setup is very well described on Microsoft Docs : Setup Email in Business Central .
We can see on Set Up Email page. We can send mail using this different account type in Business Central.
In Business Central from Email Scenario Assignment page we can assign different – different email scenario to for different – different accounts.
Now we add one more scenario in Email Scenario. We extend “Email Scenario” enum.
For this scenario we send mail from code. Created one procedure for create mail for this new “Test Scenario” for vendor. Here we use send function and we can’t modify body in Business Central.
We got mail with “Have a great day!” message.
Using OpenInEditorModally we can edit our mail in Business Central.
Here we modify body and and also change from address and to address. Added “Thank You” message in body.
Here we can see we got mail with these two messages.
Thank you all. Hope you all like this blog.