PHPackages                             epiphany-infotech/gsuite-smtp - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. epiphany-infotech/gsuite-smtp

ActivePackage[Mail &amp; Notifications](/categories/mail)

epiphany-infotech/gsuite-smtp
=============================

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

1.0.2(5y ago)014MITPHP

Since Mar 29Pushed 5y ago1 watchersCompare

[ Source](https://github.com/epiphanyinfotech/GSuiteSMTP)[ Packagist](https://packagist.org/packages/epiphany-infotech/gsuite-smtp)[ RSS](/packages/epiphany-infotech-gsuite-smtp/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

GSuiteSMTP
==========

[](#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:

---

Once you have these:

1. Start by running composer from the root directory of your project and type:

```
composer require epiphany-infotech/gsuite-smtp

```

2. Add the provider in the 'providers' array in your `config\app.php` file:

```
EpiphanyInfotech\GSuiteSMTP\GSuiteSMTPServiceProvider::class,

```

3. Publish the config file using the command:

```
php artisan vendor:publish --tag=gsuiteconfig

```

4. Add the following in your .env file:

```
  ENABLE_GSUITESMTP=true
  SMTP_USER_EMAIL=youremail@tld.com
  SMTP_REFRESH_TOKEN="your referesh token" #preferred to be in quotes
  SMTP_CLIENT_SECRET="your client secret" #preferred to be in quotes
  SMTP_CLIENT_ID="your client id" #preferred to be in quotes

```

5. Delete the cached files present in `bootstrap\cache`. No need to delete the .gitignore file.
6. Run the coommands:

```
  php artisan config:cache
  php artsian config:clear

```

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:

1. Your other configuration for SMTP in the `.env` should remain as it would be without this package, i.e.:

```
  MAIL_DRIVER=smtp
  MAIL_HOST=smtp.gmail.com
  MAIL_PORT=587
  MAIL_USERNAME=youremail@tld.com
  MAIL_PASSWORD=NULL  #Can be anything but since we are bypassing it, it's just mentioned as null
  MAIL_ENCRYPTION=tls
  MAIL_FROM_ADDRESS=youremail@tld.com
  MAIL_FROM_NAME="${APP_NAME}"

```

2. 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:

Or email at:

`brajinder@epiphanyinfotech.com`

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1870d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a20b6d23fd48bb60c5d34c3c745fda905569430c6418b23b76d37db1e3c3254a?d=identicon)[brajindersingh](/maintainers/brajindersingh)

---

Top Contributors

[![brajindersingh](https://avatars.githubusercontent.com/u/12485069?v=4)](https://github.com/brajindersingh "brajindersingh (14 commits)")

---

Tags

laravelemailmaileroauth2smtpgsuiteallow less secure apps

### Embed Badge

![Health badge](/badges/epiphany-infotech-gsuite-smtp/health.svg)

```
[![Health](https://phpackages.com/badges/epiphany-infotech-gsuite-smtp/health.svg)](https://phpackages.com/packages/epiphany-infotech-gsuite-smtp)
```

###  Alternatives

[aplus/email

Aplus Framework Email Library

2461.6M3](/packages/aplus-email)[hafael/azure-mailer-driver

Supercharge your Laravel or Symfony app with Microsoft Azure Communication Services (ACS)! Effortlessly add email, chat, voice, video, and telephony-over-IP for next-level communication. 🚀

14109.2k](/packages/hafael-azure-mailer-driver)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
