# Gmail SMTP

<table data-view="cards"><thead><tr><th></th><th></th></tr></thead><tbody><tr><td>Time Required</td><td>15 Minutes</td></tr><tr><td>Difficulty</td><td>Easy</td></tr><tr><td>Required Knowledge</td><td>N/A</td></tr></tbody></table>

## TLDR

| Setting    | TLS                 | SSL                 | Unsecured           |
| ---------- | ------------------- | ------------------- | ------------------- |
| *Host*     | smtp.gmail.com      | smtp.gmail.com      | smtp.gmail.com      |
| *Port*     | 587                 | 465                 | 25                  |
| *Username* | Email Address       | Email Address       | Email Address       |
| *Password* | Unique App Password | Unique App Password | Unique App Password |

## Set up SMTP Credentials

{% columns %}
{% column %}

#### Requirements

* A Gmail account
* A service that uses SMTP (eg emailing from a printer)
  {% endcolumn %}

{% column %}

#### Recommended

* A unique Gmail account for SMTP
  {% endcolumn %}
  {% endcolumns %}

### Create your SMTP credentials

#### Enable MFA

1. Browse to <https://myaccount.google.com/> and log in with the SMTP account
2. In the search bar, input `2 step` and select `2-Step Verification` from the list
3. Follow the prompts to configure 2FA
   1. Add the 2FA key to your Password vault if supported

#### Generate an SMTP app password

1. Browse to <https://myaccount.google.com/> and log in with the SMTP account
2. In the search bar, input `App Passwords` and select `App Passwords` from the list
3. Name your app password, eg `SMTP`
   1. Save the provided password to your password vault

#### Configure SMTP on the device

Refer to the table above for the relevant settings. When prompted for a password, input the App Password generated at [#generate-an-smtp-app-password](#generate-an-smtp-app-password "mention")

I recommend creating a unique password for each service using SMTP to reduce the impact if the password is ever breached or leaked.


---

# 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://www.trentbauer.com/guides/other-guides/google/gmail-smtp.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.
