# Gmail

{% stepper %}
{% step %}

### Enable 2-Step Authentication & Set up App Password from Gmail&#x20;

#### Step 1: Make sure 2-Step Verification is ON

* App Passwords only work if **2-Step Verification** is enabled.
* Go to Google Account Security.
* Under **“How you sign in to Google”**, check that **2-Step Verification** is turned on.
*

```
<figure><img src="/files/G4t0e2vfXMSTERGpQke9" alt=""><figcaption></figcaption></figure>
```

#### Step 2: Go to 2-Step Verification -> App Passwords

1. In the same **Security** page, under **“Signing in to Google”**, click **App passwords**.\
   (You may need to log in again.)
2.

```
<figure><img src="/files/VFwHCCa7l2NPqP8Oqfan" alt=""><figcaption></figcaption></figure>
```

3. Create app password -> enter app name
4.

```
<figure><img src="/files/CRjMKFlxH9MOyNX473BO" alt=""><figcaption></figcaption></figure>
```

5. If you don’t see this option, it means:
   * 2-Step Verification isn’t enabled, OR
   * Your Google Workspace admin disabled it, OR
   * You’re using an account that doesn’t allow app passwords.

#### Step 3: Use the App Password

* A 16-character code will appear (e.g., `abcd efgh ijkl mnop`).
* Enter this instead of your regular Gmail password when adding your account to the app.

#### Step 4: Copy, Backup,  Save App Password.

* You need to save and backup the app password, Google Gmail SMTP only display once, if you forget the app password, you need to regenerate the app password.
  {% endstep %}

{% step %}

### Set up SMTP from App

* From Setting > General > Mail SMTP & API
* Enter the information to the configuration section:&#x20;
  * Provider : Google
  * SMTP Host: `smtp.gmail.com`
  * Encryption: **TLS**
  * Port: **587**
  * Authentication: Yes
  * Username: your Gmail address
  * Password: your **App Password**&#x20;
    {% endstep %}

{% step %}
**Save and Send test**
{% endstep %}
{% endstepper %}

***

## Send emails from a different address or alias

If you own another email address, you can send mail as that address. For example:

* Yahoo, Outlook, or other non-Gmail address
* Your work, school, or business domain or alias, like @yourschool.edu or <youralias@gmail.com>
* Another Gmail address

**Tip**: You can send emails from up to 99 different email addresses.

### Step 1: Add an address you own

1. On your computer, open [Gmail](https://mail.google.com/).
2. In the top right, click Settings ![Settings](https://lh3.googleusercontent.com/p3J-ZSPOLtuBBR_ofWTFDfdgAYQgi8mR5c76ie8XQ2wjegk7-yyU5zdRVHKybQgUlQ=w36-h36) ![and then](https://lh3.googleusercontent.com/QbWcYKta5vh_4-OgUeFmK-JOB0YgLLoGh69P478nE6mKdfpWQniiBabjF7FVoCVXI0g=h36) **See all settings**.

<figure><img src="/files/hSUBiMoTnDfgXjI8aKn8" alt=""><figcaption><p>See all settings</p></figcaption></figure>

3. Click the **Accounts and import** or **Accounts** tab.

   <figure><img src="/files/6q6n9RS6nQ2iVmHxyBva" alt=""><figcaption><p><strong>Accounts tab</strong></p></figcaption></figure>
4. In the "Send mail as" section, click **Add another email address**.

   <figure><img src="/files/Kgu6Yu10rJXx2XKgKvmx" alt=""><figcaption><p><strong>Add another email address</strong></p></figcaption></figure>
5. Enter your name and the address you want to send from.

<figure><img src="/files/XccjPhXV1Fr08txkrZXK" alt=""><figcaption></figcaption></figure>

6. Click **Next Step** ![and then](https://lh3.googleusercontent.com/QbWcYKta5vh_4-OgUeFmK-JOB0YgLLoGh69P478nE6mKdfpWQniiBabjF7FVoCVXI0g=h36) Send verification.
7. For school or work accounts, enter the SMTP server (for example, smtp.gmail.com or smtp.yourschool.edu) and the username and password on that account.
8. Click **Add Account**.

### Step 2: Confirm the address

1. Sign in to the account you added.
2. Open the confirmation message you got from Gmail.
3. Click the link.

### Step 3: Change the "From" address

1. In the message, click the "From" line.\
   (If you don't see this, click the space next to the recipient's email.)
2. Select the address to send from.

### Step 4: Change the “From” address in Globo PreOrder & BIS app

\
If you still have not set up the SMTP for admin, please view this article for more details: [Set up SMTP email](https://docs.globo.io/pre-order/setting/smtp-configuration/gmail)

1. In the SMTP configuration of admin, scroll down to **Send mail from another email** field
2. Enter the newly added email address (alias email) to the field **Send mail from another email**
3. Add a custom name for email account if you want  (optional)
4. Click **Save** to update the changes and **send test email**

Now check the result in your email account<br>

<figure><img src="/files/qJYARpVcBcXSJZfHDEOi" alt=""><figcaption></figcaption></figure>

***

📩 Need Help? \
\
If you encounter any difficulties during setup, please don’t hesitate to reach out via **chat** or email us at **<hi@globosoftware.net>**. We're always here to help!\
\
&#x20;


---

# 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.globo.io/pre-order/setting/smtp-configuration/gmail.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.
