Set up Oauth 2.0

Recently Google and Microsoft changed their authentication method to send e-mails

With both you can either use the OAuth (method 2) authentification or the user/password (method 1), but note that the user/password and not the credentials you use to connect to your mailbox but application password that need to be created.

Gmail

Method 1: Create an application password

You can find this password generation in your account settings => Signing in to Google => App Passwords Make sure to save the password somewhere safe, after that you've created it you won't be able to see again.

Method 2: Create authorization credentials

  • Select the Web application application type.

  • Fill name field

  • Fill your redirect Url (Your redirect url is in your AcyMailing configuration)

  • Click on "create" button

  • Copy your Client id and your Client secret

  • Paste your Client id and your Client secret in your AcyMailing configuration

  • And then click on "please log in" button

When you click on "log in" button, you will be redirected :

  • Connect your Gmail account and authorize access to your mailbox

  • Authorize AcyMailing to use your Gmail account to send your emails

Outlook

Method 1: Create an application password

Here is the documentation to create a password: https://support.microsoft.com/en-us/account-billing/using-app-passwords-with-apps-that-don-t-support-two-step-verification-5896ed9b-4263-e681-128a-a6f2979a7944

Method 2: Create authorization credentials

  • Sign in to the Azure portal

  • Go to App registration

  • Click on "Registration an application" button

  • Fill name field

  • Choose the account you want to permit (more details here)

  • Fill your redirect url (Your redirect url is in your AcyMailing configuration)

  • Click on "create" button

  • Click on "Certificates & secrets" button

  • Click on "New client secret" button

  • Add a description (it's optional)

  • And click on "add" button

  • Now, copy your secret id (it will not be visible afterwards)

  • Then, copy your client id

If you use Microsoft 365 account, please follow these steps to enable Oauth 2.0 :

  • go to Settings > Org Settings > Modern Authentication

  • in the Modern authentication flyout that appears, click to enable or disable Turn on modern authentication for Outlook 2013 for Windows and later (recommended)

  • In your AcyMailing configuration, fill client id and client secret

  • Moreover please choose a tenant :

    • Microsoft accounts : select this tenant, if your application accept only personal accounts

    • Any account type : select this tenant, if your application accept both accounts (personal and organisations accounts)

    • Organisation : select this tenant, if your application accept only organisations accounts

  • And then click on "please log in" button

When you click on "log in" button, you will be redirected :

  • Connect your Outlook account and authorize access to your mailbox

  • Authorize AcyMailing to use your Outlook account to send your emails

Last updated