# Custom Mail

## Configuration

Before custom mail can be setup in iPaper, you need to setup the SPF record on your domain first.

If you do not have an SPF record yet, you can add the following as a TXT record on the domain you wish for us to send of behalf of.

```
v=spf1 include:spf.ipaper.io ~all
```

In the case you already have an SPF record in your DNS configuration you should only add `include:spf.ipaper.io`, else you risk loosing emails that was previously configured via your SPF record.

{% hint style="warning" %}
**Important:**&#x20;

Be aware if you already have an SPF record setup in your DNS, please do ensure you are only adding the partial record
{% endhint %}

## Verification

To verify if the SPF record have been setup correctly you can use the following tool:

<https://mxtoolbox.com/SuperTool.aspx?action=spf%3aipaper.io&run=toolpage>

Replace “ipaper.io” with the desired domain.

If `spf.ipaper.io` appears in the list of results with a pass in `PrefixDesc` you should be all good.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ipaper.io/flipbook-integration/custom-mail.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
