> For the complete documentation index, see [llms.txt](https://gift.icbest.ca/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gift.icbest.ca/settings/email-settings.md).

# Email Settings

GiftManager can send an email to a buyer when someone deletes a gift idea that the buyer already marked as bought. This is the only notification the app sends.

Open it from the admin dashboard > **Email Settings**. The page has two parts: the sender address and a test email.

{% hint style="info" %}
The email provider (Mailjet or SMTP) and its credentials are no longer entered on this page. They are set as environment variables. See Installation and Environment variables.
{% endhint %}

### System Email (Sender)

The address the notifications are sent from. Use an address your email provider allows you to send from.

1. Enter the address in **System Email (Sender)**.
2. Select **Save**.

Changes apply immediately, with no restart needed.

If `SYSTEM_EMAIL` is set as an environment variable, it takes priority over the value saved here.

### Test Email Delivery

Use this to check that your email setup works. It uses the provider currently configured (Mailjet or SMTP) and sends a harmless test message. It does not change any gifts, users or saved settings.

1. Save any change to the sender address first.
2. Enter a recipient address under **Test Email Delivery**.
3. Select **Send Test Email**.
4. Read the notice at the top of the page.

| Notice                                    | Meaning                                                                                                                                  |
| ----------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| Test email accepted by server             | The server took the message. Check the recipient's inbox (and spam folder) and the From address. Acceptance does not guarantee delivery. |
| Email provider did not accept the message | The provider refused it. Check your provider settings and sender address.                                                                |
| Email configuration is invalid            | A required setting is missing or wrong (sender, recipient, host, port, or password options).                                             |
| Email delivery failed (error name)        | A connection or login problem. Check the server logs for details.                                                                        |

If you see an error asking you to reload, the form has expired. Reload the Email Settings page and try again.

To read the logs: `docker compose logs --tail=50 giftmanager`. They contain only the error type, never passwords, recipient addresses or message contents.

A failed notification never prevents an idea from being deleted, and there is no retry afterwards.
