Mautic OAuth 2.0 Plugin to Send Email Messages

EasyApache 4
My Mautic version is: 45_mautic-449
My PHP 80, PHP 8.0.29-1.1.3.cpanel
extention: php80-php-fileinfo
cPanel & WHM on AlmaLinux
OS: AlmaLinux v8.8.0 STANDARD kvm
cPanel Version 112.0.5

Hi everyone,

I have a request for help finding a Mautic plugin built to send outbound email messages from my Mautic client to Gmail API server:

The plugin description reads as follows: The plugin configures OAuth 2.0 client with Mautic for secure authentication when sending email messages. The steps involve enabling the OAuth 2 Two-Legged Authentication plugin, entering the OAuth client details, including the client ID and secret, and configuring the authorization and access token URLs. After saving the settings, you can assign the OAuth 2.0 client to specific email services and proceed to create email campaigns using OAuth 2.0 authentication.

How to configure Gmail API settings for sending outbound email messages from a Mautic client to a Firebase Gmail API server:
Here are the step-by-step instructions to set up the Firebase project and enable the Gmail API:

Guide to Configure OAuth 2.0 Client with Mautic

Step 1: Log in to your Mautic account and access the admin dashboard.

Step 2: Navigate to the “Configuration” section in the top menu.

Step 3: From the dropdown menu, select “Plugins.”

Step 4: Search for “OAuth” and click on “OAuth 2 Two-Legged Authentication” to enable it.

Step 5: After enabling the plugin, click on the gear icon (settings) next to the “OAuth 2 Two-Legged Authentication” plugin.

Step 6: Fill in the following details:

Enabled: Check the box to enable the OAuth 2 Two-Legged Authentication plugin.
Client Key: Enter the OAuth client ID obtained when creating your OAuth client.
Client Secret: Enter the client secret associated with the OAuth client.
Authorize URL: Enter the authorization URL specific to the OAuth provider (e.g., Gmail API).
Access Token URL: Enter the access token URL specific to the OAuth provider.
Redirect URI: Enter the URL where users will be redirected after granting access.
Step 7: Click the “Apply” button to save the changes.

Step 8: Configure OAuth settings for each email service. Go to the “Email Settings” in the Mautic dashboard.

Step 9: For each email service, select the OAuth 2.0 client you created from the dropdown list.

Step 10: Save the changes.

Step 11: Proceed to create email campaigns and use the OAuth 2.0 credentials to send emails through the selected email service.

Summary:
The guide provides a step-by-step process to configure OAuth 2.0 client with Mautic for secure authentication when sending email messages. The steps involve enabling the OAuth 2 Two-Legged Authentication plugin, entering the OAuth client details, including the client ID and secret, and configuring the authorization and access token URLs. After saving the settings, you can assign the OAuth 2.0 client to specific email services and proceed to create email campaigns using OAuth 2.0 authentication.

Thanks,
Hal

Plz note, that soon Mautic 5 stable will come out and you’ll have to use Symfony Mailer to do so.

joeyk,

Does Mautic 5 stable resolve the following error message, /home/mautic/public_html/mautic.devced.com/var/logs/mautic_prod-2023-08-28.php:

[2023-08-28 05:50:35] mautic.ERROR: [MAIL ERROR] Connection could not be established with host smtp.gmail.com :stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: error:1408F10B:SSL routines:ssl3_get_record:wrong version number Log data: ++ Starting Swift_Transport_EsmtpTransport !! Connection could not be established with host smtp.gmail.com :stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: error:1408F10B:SSL routines:ssl3_get_record:wrong version number (code: 0) (send); director@CforED.com {“exception”:“[object] (Swift_TransportException(code: 0): Connection could not be established with host smtp.gmail.com :stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:\nerror:1408F10B:SSL routines:ssl3_get_record:wrong version number\nLog data:\n++ Starting Swift_Transport_EsmtpTransport\n!! Connection could not be established with host smtp.gmail.com :stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:\nerror:1408F10B:SSL routines:ssl3_get_record:wrong version number (code: 0) at /home/mautic/public_html/mautic.devced.com/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Plugins/LoggerPlugin.php:124)”} {“hostname”:“35-236-118-198.cprapid.com”,“pid”:521049}

See the captured screenshot image:

Regards,
Hal