# Setup SMTP

The SMTP (Simple Mail Transfer Protocol) setup in Agency Handy allows you to send emails from your own verified email server instead of the system default. This ensures professional branding, improves deliverability, and gives you more control over your outbound email communications.

### What You Can Do

* Connect your workspace with your own SMTP server (e.g., Gmail, Outlook, custom domain)
* Send invoices, notifications, and proposals using your verified email
* Test your SMTP connection to confirm proper setup
* Switch between Custom Domain Email and SMTP Email Provider

### Why It Matters

* Strengthens brand identity by sending emails from your own domain
* Improves trust and deliverability (avoiding “<noreply@agencyhandy.com>”)
* Offers flexibility to use your preferred email infrastructure

### Who Can Use This

* **SuperAdmins** and **Admins** with Workspace Config permissions

***

### Getting Started

#### 1. Navigate to Email Setup

* Go to **Workspace Config → Email Setup**
* Click **SMTP Server**\ <br>

  <figure><img src="https://842362573-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiedbxyF6rrnGBuHuFME1%2Fuploads%2FAL8EMMZV5NYmjZyE18eU%2FScreenshot_149.png?alt=media&#x26;token=8c789ae2-c6f5-4c7e-9338-eaa71e01f39f" alt=""><figcaption></figcaption></figure>

#### 2. Switch to SMTP Provider

* If you are already using **Custom Email**, a confirmation popup appears:
  * Click **Switch to SMTP** to continue
  * This will disable existing custom email settings\ <br>

    <figure><img src="https://842362573-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiedbxyF6rrnGBuHuFME1%2Fuploads%2FWle4gFhkf1CBQheiLvS1%2FScreenshot_150.png?alt=media&#x26;token=102ce6ee-ab6c-4233-9871-3925ef819be6" alt=""><figcaption></figcaption></figure>

#### 3. Configure SMTP Details

Fill in the required fields:

* **Host Name** (e.g., smtp.gmail.com)
* **User Name** (your full email address)
* **Password** (app password or SMTP password)
* **Port** (e.g., 465 for SSL, 587 for TLS)
* **Auto TLS** (optional toggle for security)\
  Click **Save** to store settings.\ <br>

  <figure><img src="https://842362573-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiedbxyF6rrnGBuHuFME1%2Fuploads%2FIggA9faohsZ1IcInGtsB%2FScreenshot_151.png?alt=media&#x26;token=e19ab50d-4812-48ce-8500-7840fd7339e7" alt=""><figcaption></figcaption></figure>

#### 4. Generate the App Password:

Here’s a step-by-step guide:

1. Enable 2-Step Verification (if not already on):

* Go to your Google Account: [manage your Google Account](https://myaccount.google.com/security).
* Navigate to the "Security" tab on the left.
* Under "Signing in to Google," select 2-Step Verification and follow the prompts to turn it on (you'll need your phone).
* Once 2-Step Verification is active, go back to the Security section or directly to <https://myaccount.google.com/apppasswords>.
* You may need to sign in again.
* At the bottom, click Select app and choose the app (e.g., Mail, Other) or type a custom name for the device/app you're connecting.\ <br>

  <figure><img src="https://842362573-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiedbxyF6rrnGBuHuFME1%2Fuploads%2F3PsA7p5sNO656mcKdUGJ%2FScreenshot_106.png?alt=media&#x26;token=6b7c988f-95d7-4cb5-a7e9-dbdf1d2e585f" alt=""><figcaption></figcaption></figure>
* Click Select device, choose your device (or type a custom name).
* Click Create. A 16 digit password will be created<br>

  <figure><img src="https://842362573-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiedbxyF6rrnGBuHuFME1%2Fuploads%2F43XNbsRgzSGwEyeIT5tt%2FScreenshot_107.png?alt=media&#x26;token=402e7e76-4115-4eea-929a-b38a4b4d9504" alt=""><figcaption></figcaption></figure>
* Copy the password & paste it in the SMTP settings in Agency Handy.

#### 5. Confirm Setup

* A success message confirms: *“SMTP is created successfully.”*
* Saved SMTP details (host, username, port) will be displayed\ <br>

  <figure><img src="https://842362573-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiedbxyF6rrnGBuHuFME1%2Fuploads%2F2kIahOUbtrlnCmnIkg4i%2FScreenshot_152.png?alt=media&#x26;token=7db46f40-cdd9-4e10-9ed8-b9434a327f13" alt=""><figcaption></figcaption></figure>

#### 6. Test SMTP Connection

* Click **Test** and enter a receiver email address\ <br>

  <figure><img src="https://842362573-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiedbxyF6rrnGBuHuFME1%2Fuploads%2Fiv95k7YezCTVfE2xn8mc%2FScreenshot_154.png?alt=media&#x26;token=f3b5dcac-9d26-493f-8f8c-dac3cd192e78" alt=""><figcaption></figcaption></figure>

* Agency Handy sends a test email\ <br>

  <figure><img src="https://842362573-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiedbxyF6rrnGBuHuFME1%2Fuploads%2F9p2pcM3vbRPYuWUSR7od%2FScreenshot_155.png?alt=media&#x26;token=fe654240-6407-460a-822f-2fcb45f62373" alt=""><figcaption></figcaption></figure>

* Check your inbox for the confirmation message:\
  \&#xNAN;*“This is a confirmation that your email setup in Agency Handy is working properly.”*\ <br>

  <figure><img src="https://842362573-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiedbxyF6rrnGBuHuFME1%2Fuploads%2FShmNUK4Ufu4WTO3dmuxf%2FScreenshot_153.png?alt=media&#x26;token=05233dd1-3693-498b-8ebb-acff65d529c5" alt=""><figcaption></figcaption></figure>

***

### Important Notes

* Use an **App Password** (not your regular login password) if your provider requires it (e.g., Gmail with 2FA).
* Only one SMTP setup can be active per workspace.
* Emails will no longer use <noreply@agencyhandy.com> once SMTP is configured.
* Incorrect details (host, port, credentials) will block outgoing emails.
* Switch between **Custom Domain Email** and **SMTP Email Provider** anytime, but only one can be active.
* When switching to a custom email, you have to set the email again.
