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

# Setting up an SMTP server with Add-ons

> Install and configure the SMTP add-on in PlayFab Game Manager with your host, port, and credentials to send custom account and marketing emails to players.

This tutorial walks you through how to set up an SMTP add-on, to support sending custom emails through PlayFab.

## Requirements

Game Manager will be required, as the SMTP server for the title is set up using an add-on. Read our [Game Manager Quickstart](/services/playfab/live-service-management/gamemanager/quickstart) if you are unfamiliar with it.

## Go to the add-on page and install SMTP

In **Game Manager**:

1. Go to **Add-ons**.
2. Under the **Marketing** section, select the **SMTP** add-on. This will redirect you to the **Add-on** page.

<img src="https://mintcdn.com/microsoft-4404708b/3hg2JQs0m7qmDqay/images/playfab/live-service-management/game-configuration/title-communications/emails/tutorials/marketing-smtp-add-on-button.png?fit=max&auto=format&n=3hg2JQs0m7qmDqay&q=85&s=e46aa51e0d682e9b6326ff0e53104497" alt="Marketing-SMTP Add-On button" width="542" height="647" data-path="images/playfab/live-service-management/game-configuration/title-communications/emails/tutorials/marketing-smtp-add-on-button.png" />

3. Select the **INSTALL SMTP** button.

## Configure SMTP

A form should appear with the **Host name**, **Port number**, **Username**, and **Password** fields.

<img src="https://mintcdn.com/microsoft-4404708b/3hg2JQs0m7qmDqay/images/playfab/live-service-management/game-configuration/title-communications/emails/tutorials/game-manager-add-ons-install-smtp-form.png?fit=max&auto=format&n=3hg2JQs0m7qmDqay&q=85&s=5428cf7fa43f8c515447c8ed39f6475f" alt="Game Manager-Add-ons-Install SMTP form" width="1366" height="1063" data-path="images/playfab/live-service-management/game-configuration/title-communications/emails/tutorials/game-manager-add-ons-install-smtp-form.png" />

* Fill out the form with **Host name**, **Port number**, **Username**, and **Password** for your SMTP server.
* Select the **SAVE SETTINGS** button, and the add-on should now be installed.

<Note>
  If your SMTP server requires **SSL/TLS**, use **port 587**.
</Note>

## Testing

To test this feature, you can use the Gmail SMTP server, provided you have a Gmail account. To use Gmail, fill in the fields as follows:

* Host name: **smtp.gmail.com**
* Port number: **587**
* Username: (**your gmail address** - e.g., "[support@playfab.com](mailto:support@playfab.com)")
* Password: (**your password**)

<Note>
  If you have 2-factor authentication enabled, you will need to create an App password. See [Sign in using an App password](https://support.google.com/accounts/answer/185833?hl=en) for more information.
</Note>

The SMTP add-on is now installed, and will show a green check and message indicating success.

<img src="https://mintcdn.com/microsoft-4404708b/3hg2JQs0m7qmDqay/images/playfab/live-service-management/game-configuration/title-communications/emails/tutorials/game-manager-add-ons-smtp-installed.png?fit=max&auto=format&n=3hg2JQs0m7qmDqay&q=85&s=05b897c89a03984cb7abaf44f5b9a759" alt="Game Manager-Add-ons-SMTP-Installed" width="1366" height="1063" data-path="images/playfab/live-service-management/game-configuration/title-communications/emails/tutorials/game-manager-add-ons-smtp-installed.png" />


## Related topics

- [Email messaging quickstart](/services/playfab/live-service-management/game-configuration/title-communications/emails/quickstart.md)
- [Setting up PlayFab authentication using Steam and Unity](/services/playfab/identity/player-identity/platform-specific-authentication/steam-unity.md)
- [Photon Quickstart](/services/playfab/live-service-management/service-gateway/add-ons/photon/quickstart.md)
- [Set up Sign In with Battle.net for PlayFab](/services/playfab/identity/player-identity/platform-specific-authentication/battlenet-login.md)
- [Add-ons](/publishing/game-publishing/concepts/add-ons.md)
