> For the complete documentation index, see [llms.txt](https://www.trentbauer.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.trentbauer.com/guides/other-guides/google/gmail-smtp.md).

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