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
Requires
- flarum/core: ^0.1.0-beta.14
- google/apiclient: ^2.12.1
This package is not auto-updated.
Last update: 2024-12-15 18:20:49 UTC
README
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