> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fastgen.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Email (SMTP)

**Set up transactional emails or create time based campaigns**.

<img src="https://mintcdn.com/organa/IAAgt4Qjpzo5KMmv/images/smtp-email-header.webp?fit=max&auto=format&n=IAAgt4Qjpzo5KMmv&q=85&s=a2a7c1fda0ee9819ddb593950c003f64" alt="smtp-email-header" width="2437" height="1357" data-path="images/smtp-email-header.webp" />

## Overview

This action allows you to send email messages using the Simple Mail Transfer Protocol (SMTP). It is useful for sending transactional emails to your customers, internal alerts or creating email campaigns that run on a time interval.

## Set Up

### General Settings

Navigate to your integration settings and start configuring your SMTP setup:

* **SMTP Server** : Your host or IP address
* **From email address** : The email address you want to send emails from
* **Port** : Usually 25 or 587
* **Authentication** : Your email username and password of that email account

### Google Workspace/Gmail Set Up

If you are using Google as your email domain provider, follow these steps to authenticate:

* **SMTP Server** : smtp.gmail.com
* **From email address** : The email address you want to send emails from
* **Port** : 587 (TLS) or 465 (SSL)

For Authentication, select *Basic Auth* and use the Google account email address as your Username. For the password we need to head to your Google settings:

If your Google account is 2FA protected (which it should!), go to your account settings and visit your  [App Password Settings](https://myaccount.google.com/apppasswords).

<Frame caption="On this screen, press Select App, choose Other (Custom name) and call it Fastgen">
  <img src="https://mintcdn.com/organa/x4VcIWGQE6pfuZkY/images/app-passwords-select-app.webp?fit=max&auto=format&n=x4VcIWGQE6pfuZkY&q=85&s=0e0e0e6c2615ecadc7227d10fe376a42" width="2508" height="1991" data-path="images/app-passwords-select-app.webp" />
</Frame>

<br />

<Frame caption="After pressing Generate, Google will display the password in the yellow box. Copy this and use it as the password in your SMTP set up within Fastgen!">
  <img src="https://mintcdn.com/organa/x4VcIWGQE6pfuZkY/images/app-passwords-password.webp?fit=max&auto=format&n=x4VcIWGQE6pfuZkY&q=85&s=cf94a21a2f5637bc7a8981441e79a591" width="2508" height="1817" data-path="images/app-passwords-password.webp" />
</Frame>

If you do not have 2FA enabled, search for "Less secure app acceess" in your Google settings and allow access in case it is not available already. If you can't find either of the options, please contact your Google Workspace Administrator as they might have disabled them.

## Lessons

Learn more about the Email SMTP Action, among other things, in the following Fastgen University lessons:

* [Webhook-SQL](/university/step-by-step/webhook-sql)
