> For the complete documentation index, see [llms.txt](https://docs.giftcardfactory.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.giftcardfactory.app/misc/app-emails/sending-domain/postmark.md).

# Postmark

Postmark sends your app emails through your own [Postmark](https://postmarkapp.com/) account. You'll need a Postmark account with an authenticated sender domain before you start.

### 1. Get your Postmark Server API token

In your Postmark dashboard, navigate to **Servers → \[Your Server Name] → API Tokens** and copy the **Server API token**.<br>

<figure><img src="https://2895247924-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcsKliv3CuXU7kN4gxX9B%2Fuploads%2FV7tq7SIadzmOQOD03wXk%2Fimage.png?alt=media&amp;token=ad1573b5-c20e-4ba4-854f-219501ea09e8" alt="" width="563"><figcaption></figcaption></figure>

### 2. Add the API token to Gift Card Factory

1. Open **Settings → App Emails Sending** in the Gift Card Factory app.
2. Select **API Keys**.
3. In **From**, enter the address you want emails to come from in the format `My Store <hello@validated-domain.com>`. The address must be on a domain that is already verified in your Postmark account.
4. Set **Provider** to **Postmark**.
5. Paste your Server API token into **Provider API key**.
6. Save the settings.<br>

<figure><img src="https://2895247924-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcsKliv3CuXU7kN4gxX9B%2Fuploads%2Fa9wIFuAsqK2OLY4bmMDi%2Fimage.png?alt=media&amp;token=10d8225c-a428-4ec7-ba59-f4337b2a9df6" alt="" width="563"><figcaption></figcaption></figure>

From now on, all app emails will be delivered through your Postmark account, using your domain in the **From** address.

{% hint style="warning" %}
If the **From** domain is not verified in Postmark, sends will fail. Make sure DKIM and Return-Path are validated on the Postmark side first.
{% endhint %}
