Recommend this page to a friend! |
Classes of Iago Felicio | Laravel Gmail OAuth2 | README.md | Download |
|
DownloadSend emails with Gmail OAuth2 credentialsThis Laravel package allows you to send emails securely using Gmail OAuth2 credentials, eliminating the need to store sensitive information like username and password in your application configuration. Support usThis package is actively maintained and free to use. If you find it helpful, consider giving back by:
InstallationYou can install the package via composer: For PHP 8 and Laravel 9:
For PHP 7 and Laravel 7/8:
Gmail CredentialsTo obtain a Gmail OAuth2 refresh token, you can refer to the instructions provided by the PHPMailer package on Github https://github.com/PHPMailer. For detailed instructions on generating a Gmail OAuth2 refresh token, we recommend following the excellent tutorial provided by Coding Yet https://www.codingyet.com/how-to-use-phpmailer-with-xoauth2/. This tutorial walks you through the process step-by-step, ensuring a smooth setup for your secure email sending. Usage(Step 1) For PHP 7 and Laravel 7/8:Edit
(Step 1) For PHP 8 and Laravel 9:Edit
Edit the MAIL_MAILER in
(Step 2) For Laravel 7, 8 and 9:Add your Gmail credentials in
TestingPending development.
ChangelogPlease see CHANGELOG for more information on what has changed recently. CreditsLicenseThe MIT License (MIT). Please see License File for more information. |