Configure Gmail SMTP service in Business Central without "Allow Less Secure" setting

 Introduction

Business Central has great email features like sending email, editing it with Rich Text, adding attachments, etc, but to send emails, you'll need to connect it with services like Outlook or Gmail. There is no outlook side configuration that is to be done if you are using Microsoft Outlook however if you are using Google's Gmail then there's a litte change that has happened on the configuration end.

Starting May, 2022, Google has removed the "Allow Less Secure Apps" settings from the Google Accounts, which was essential is using Gmail to send emails from Business Central.

However, to replace that we have "App Passwords" which we can use instead.


Also, just something to keep in mind, Google is going to remove this from the "Google Workspace" accounts as well by Sept, 2024 so it would be wise for you to migrate your configurations to use app passwords.

Reference

1. How to Setup Email in Business Central

2. Google Support - Less secure apps & your Google Account

Configuration

Go to "Manage your Google Account" or https://myaccount.google.com.


Then click on Security.


Then click on "2-Step Verification."


Here, scroll to the bottom where it says "App Passwords" and click on it.



Here, you'll be able to see all the names of the App Passwords that you have created and you can choose to remove their access from there.

You can also add a new app name here and click on "Create" to create your new app password.


You can simply copy this text and paste it in the "Password" field of the Business Central Email Account.

Now, if I try to send a test email, I get a success message.


Conclusion

Thus we saw how to configure Gmail accounts to send emails in Business Central without the "Allow Less Secure" setting in Google settings.

Comments

Popular posts from this blog

Using Notifications in Business Central via AL

Actionable Error Messages in Business Central