Set up Oauth 2.0
Last updated
Last updated
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.
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.
Go to the Credentials page.
Click Create credentials > OAuth client ID.
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
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
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
If you use OAuth for Bounce handling please:
Go to "API Permissions"
Click on "Add a permission"
Select "Microsoft Graph" and then search for "imap" you should be able to add the permission "IMAP.AccessAsUser.All"
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 your Microsoft 365 admin center
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