# How to Connect Gmail/Google Workspace

**SMTP Details for Gmail / G Suite**

**Host:** smtp.gmail.com\
**Encryption:** TLS\
**SMTP Port:** 587 (or 465 using SSL encryption)\
**Authentication:** On\
**Username:** Your Gmail account email address (e.g. <bruce@gmail.com>)\
**Password:** Your Gmail account password

You need to input the above details into the YaySMTP settings area accordingly, then **enable less secure apps in Gmail or G Suite** by logging into your Gmail or G Suite account and then open **"less secure apps"** or [click here](https://www.google.com/settings/security/lesssecureapps) and and switch ON the toggle. Mind you, if 2-Factor Authentication is enabled for your account, you will need to disable it before enabling this toggle.

![](https://2430774507-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MMvULxRbZfmag_jD1k_%2F-MRg6Yj_NmoRbOU676za%2F-MRg9DPCFV5LWTfyByCs%2Fimage.png?alt=media\&token=fa19b5bd-7f21-4578-9c11-9fcab6b8ee2b)

Sometimes you could get notification from Google warning you about **suspicious activity** in your account, you can click **Check activity** and follow the instruction to mark it as **safe.**

![](https://2430774507-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MMvULxRbZfmag_jD1k_%2F-MRg6Yj_NmoRbOU676za%2F-MRg9SWgu8iEpy0PDgEV%2Fimage.png?alt=media\&token=d53e4bdf-51e8-41ff-bb8f-6249b641ec37)

Just make sure you click **save** in the YaySMTP settings to save your details and that's al&#x6C;**.**

![](https://2430774507-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MMvULxRbZfmag_jD1k_%2F-MRg6Yj_NmoRbOU676za%2F-MRg9b290anG3dBppbGo%2Fimage.png?alt=media\&token=ae348c4a-253c-44b8-abf9-068d627bc42b)

Now you have successfully integrate Gmail SMTP server into your WordPress site!&#x20;

Happy Sending!
