Download the PHP package epiphany-infotech/gsuite-smtp without Composer
On this page you can find all versions of the php package epiphany-infotech/gsuite-smtp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download epiphany-infotech/gsuite-smtp
More information about epiphany-infotech/gsuite-smtp
Files in epiphany-infotech/gsuite-smtp
Package gsuite-smtp
Short Description gsuite-smtp - Package to allow sending emails through Google Suite or even Gmail, without turning on the "allow less secure apps" and using OAuth2.0 token, client id, client secret and refresh token
License MIT
Informations about the package gsuite-smtp
GSuiteSMTP
Package to allow sending emails through Google Suite or even Gmail, without turning on the "allow less secure apps" and using OAuth2.0 token, client id, client secret and refresh token
Tested on Laravel 6.x
Before installing, it is assumed that you have created the App on Google and have the:
- Client ID
- Client Secret
- Refresh Token
If you don't have the refresh token or need to know more about getting these details, start from here: https://developers.google.com/google-ads/api/docs/first-call/refresh-token#php
Once you have these:
-
Start by running composer from the root directory of your project and type:
-
Add the provider in the 'providers' array in your
config\app.php
file: -
Publish the config file using the command:
-
Add the following in your .env file:
-
Delete the cached files present in
bootstrap\cache
. No need to delete the .gitignore file. - Run the coommands:
This should get you going and you shouldn't have to enable "allow less secure apps" just to have the SMTP working
Points to keep in mind:
-
Your other configuration for SMTP in the
.env
should remain as it would be without this package, i.e.: - This is not a production level package and is there just to get you started. It will work and give you the desired results but this is the only documentation at the moment and offers no gurantee whatsoever.
Contributors are welcomed to work further on this project. Remove flaws, add documentation or more features, more smtp providers etc.
For any inquires regarding a new Laravel Project or any web or mobile development related work, please visit:
https://www.epiphanyinfotech.com
Or email at: