Gmail-Oauth2

Send email using Google API

Incompatible with Flarum v1.8.5

Latest release v1.0.0

0 downloads

released on Jan 15, 2022

Gmail-Oauth2

License Latest Stable Version

A Flarum extension. Send email using Google API.


Installation

Install the extension

composer require luuhai48/gmail-oauth2

Note: This requires to install the package google/apiclient-services, which comes with over 200 services and can be unecessary. Include this in your composer.json file before installing the package to only keep what we need.

{
    ...
    "scripts": {
        "pre-autoload-dump": "Google\\Task\\Composer::cleanup"
    },
    "extra": {
        "google/apiclient-services": [
            "Oauth2"
        ]
    }
}

Or run: composer dump-autoload -o to run the cleanup again.

Follow this instruction to create a Google Oauth2 App https://github.com/PHPMailer/PHPMailer/wiki/Using-Gmail-with-XOAUTH2

  • Redirect URI: must be your-website-address/gmail-oauth2

After that, you will get your client_id and client_secret.

Updating

composer update luuhai48/gmail-oauth2

Links

© 2024 Hyn by DaniĆ«l "Luceos" Klabbers. All rights reserved. · Extensions and extension information is provided by the respective (copyright holding) authors. · Extiverse is not affiliated to the Flarum project or Flarum foundation. · Images on Extiverse pages are from Unsplash.