luuhai48/gmail-oauth2

Send email using Google API

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:flarum-extension

v1.0.0 2022-01-15 06:01 UTC

This package is not auto-updated.

Last update: 2024-11-17 17:48:10 UTC


README

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