# 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.

![](/files/-MRg9DPCFV5LWTfyByCs)

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.**

![](/files/-MRg9SWgu8iEpy0PDgEV)

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

![](/files/-MRg9b290anG3dBppbGo)

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

Happy Sending!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.yaycommerce.com/yaysmtp/how-to-set-up-smtps/how-to-connect-other-smtp-gmail-g-suite.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
