# How to add a Mailto link to your emails?

<figure><img src="/files/ZgOhJl0umQOn2fTZeI9x" alt=""><figcaption></figcaption></figure>

## What is a Mailto link

A mailto link lets you add an email link in your templates. When clicked, it opens the user's default email client with the recipient's email, subject, and body pre-filled, making it easy for recipients to contact you directly without needing to manually copy and paste an email address.

## How to easily add a Mailto link

{% stepper %}
{% step %}

### Select the button/image you want to link

Choose the block where you want to insert the mailto link. You can use any Button or Image section inside the email template builder.

{% hint style="info" %}
Learn more: [Design your email templates](/xflow-app/email-templates/design-your-email-templates.md)
{% endhint %}

<figure><img src="/files/TH4rAAC7vxrODWyUA1EY" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Add the following code

In the **Link** field, add the following format:

<details open>

<summary>🔗 Basic contact link</summary>

To automatically open a new email draft in the recipient's inbox with your email address pre-filled

```
mailto:support@yoursite.com
```

*Example*: mailto:<contact@help.xflow.so>

<figure><img src="/files/bG4djpmnWdThjEFTIwkX" alt=""><figcaption></figcaption></figure>

</details>

<details>

<summary>📧 Add a CC recipient</summary>

To include an additional email address in the CC field alongside your contact email.

```
mailto:support@yoursite.com?cc=name@domain.com
```

*Example:* mailto:<contact@help.xflow.so>?cc=<hi@xflow.so>

<figure><img src="/files/FRP7uGq3votzg9S0kIcf" alt=""><figcaption></figcaption></figure>

</details>

<details>

<summary>📩 Add BCC recipients</summary>

To include recipients in the BCC field who won't be visible to others.

```
mailto:support@yoursite.com?bcc=email2@domain.com,email3@domain.com
```

*Example:* mailto:<contact@help.xflow.so>?bcc=<hi@xflow.so>,<happytohelp@foxecom.com>

<figure><img src="/files/TlEMN7nyVfOlQxdqLqsp" alt=""><figcaption></figcaption></figure>

</details>

<details>

<summary>📝 Prefill the subject line</summary>

To automatically fill in the subject line with your custom text, add it after the `?subject=` .

```
mailto:support@yoursite.com?subject=TEXT
```

*Example:* mailto:<contact@help.xflow.so>?subject=XFlow Support

<figure><img src="/files/XRRzfUtNpswSwmgwONiS" alt=""><figcaption></figcaption></figure>

</details>

<details>

<summary>✒️ Prefill the subject and body</summary>

To set a custom subject line and include predefined content in the message body, append the `&body=` .

```
mailto:support@yoursite.com?subject=TEXT&body=TEXT
```

*Example:* mailto:<contact@help.xflow.so>?subject=XFlow Support\&body=Hi XFlow team, I hope this message finds you well. I am reaching out to request your assistance with an issue I’m experiencing with the app.

<figure><img src="/files/5GPTKf1iABu1qgY4cLdw" alt=""><figcaption></figcaption></figure>

</details>

<details>

<summary>📞 Add click-to-call links</summary>

Share your phone number by adding a click-to-call link, which opens a prompt with the number for easy calling.

```
tel:+000000000000
```

<figure><img src="/files/551dP9rkrJ4JN7367Bkw" alt=""><figcaption></figcaption></figure>

</details>

<figure><img src="/files/rk96jt2dOTe017DMLeAI" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### You’ve added a mailto link to your email template! 🎉

Once the mailto link is added, don't forget to click save and apply changes to the email templates

Then, send a test email to verify everything works as expected. When you click the button or image, your default email client will open with the pre-filled information.

{% hint style="info" %}
Learn more: [Preview and test your email](/xflow-app/email-templates/preview-and-test-your-email.md)
{% endhint %}

<figure><img src="/files/ZgOhJl0umQOn2fTZeI9x" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

## Common use cases

* "Contact us" buttons: An excellent option for businesses looking to give recipients an easy way to get in touch.
* "Report an issue" links: Perfect for product or service companies that want users to quickly report problems.
* "Request a quote" buttons: A convenient option for users who need information on pricing or services.
* Customer support: A common practice in many email campaigns, allowing customers to contact you directly for assistance.
* Partnership or collaboration inquiries: Give partners a direct way to reach out with business or collaboration proposals.

***

#### 📩 **Need help?**

We’re here to make your XFlow experience smooth and successful.\
Our support team is always ready to assist you—no matter how big or small your question is.

<a href="https://admin.shopify.com/apps/xflow?chat=true&#x26;utm_source=foxecom&#x26;utm_medium=help_center_xflow_how_to_add_a_mailto_link_to_your_emails&#x26;utm_campaign=cta_button&#x26;utm_term=chat_now" class="button primary" data-icon="comment-lines">Chat now</a> <a href="mailto:contact@help.xflow.so" class="button secondary" data-icon="envelopes">Message us</a>


---

# 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.foxecom.com/xflow-app/email-templates/email-templates-faqs/how-to-add-a-mailto-link-to-your-emails.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.
