# How to add a Mailto link to your emails? ![image](https://docs-assets.foxecom.app/xflow-app/xflow_ZgOhJl0u.gif) ## 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 ### 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. Learn more: [Design your email templates](https://docs.foxecom.com/xflow-app/email-templates/design-your-email-templates) ![image](https://docs-assets.foxecom.app/xflow-app/image_TH4rAAC7.png) ### Add the following code In the **Link** field, add the following format: 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](mailto:contact@help.xflow.so) ![image](https://docs-assets.foxecom.app/xflow-app/XFlow%20docs%20screenshot%20(50)_bG4djpmn.jpg) 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](mailto:contact@help.xflow.so)?cc=[hi@xflow.so](mailto:hi@xflow.so) ![image](https://docs-assets.foxecom.app/xflow-app/XFlow%20docs%20screenshot%20(51)_FRP7uGq3.jpg) 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](mailto:contact@help.xflow.so)?bcc=[hi@xflow.so](mailto:hi@xflow.so),[happytohelp@foxecom.com](mailto:happytohelp@foxecom.com) ![image](https://docs-assets.foxecom.app/xflow-app/XFlow%20docs%20screenshot%20(53)_TlEMN7ny.jpg) 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](mailto:contact@help.xflow.so)?subject=XFlow Support ![image](https://docs-assets.foxecom.app/xflow-app/XFlow%20docs%20screenshot%20(54)_XRRzfUtN.jpg) 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](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. ![image](https://docs-assets.foxecom.app/xflow-app/XFlow%20docs%20screenshot%20(55)_5GPTKf1i.jpg) Share your phone number by adding a click-to-call link, which opens a prompt with the number for easy calling. ``` tel:+000000000000 ``` ![image](https://docs-assets.foxecom.app/xflow-app/XFlow%20docs%20screenshot%20(56)_551dP9rk.jpg) ![image](https://docs-assets.foxecom.app/xflow-app/XFlow%20docs%20screenshot%20(57)_rk96jt2d.jpg) ### 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. Learn more: [Preview and test your email](https://docs.foxecom.com/xflow-app/email-templates/preview-and-test-your-email) ![image](https://docs-assets.foxecom.app/xflow-app/xflow_ZgOhJl0u.gif) ## 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.