Learn
>
How to Add Web3 Mailto to my App

How to Add Web3 Mailto to my App

February 24, 2023

Why might you want to do this?

Web3 profiles allow users to build digital identities under their ENS names or other NFT naming services. However, the users cannot directly communicate with these profiles.

Internet users are familiar with mailto – most of us use it every day. We click an email address on a website and we’re immediately taken to an auto-filled message in our email client. Implementing mailto for Web3 addresses is easy to do and familiar to use, bringing immediate new utility for your users.

Solution Overview

What is ‘mailto’?

Mailto links are used to redirect to an email address instead of a web page URL. Users can send an email to a specific address directly from an HTML document, without having to copy it and enter it into an email client.

How does Web3 ‘mailto’ work?

The ‘mailto’ feature makes it easy to send a Mailchain message to pre-defined address(es) or create templates. This feature supports pre-filled fields, including cc, bcc, subject and body. When a user clicks the Mailchain ‘mailto’ link, they are taken to the Mailchain app, where a draft message appears. Fields are pre-filled. Then, they can easily review, make any changes and finally, send the message.

How to create a Web3 ‘mailto’ links

https://app.mailchain.com/mailto:**[mailchain address]?subject=**[subject]

  • To add a space in your subject line use: %20
  • To add a person on cc use: ?cc=
  • To add a person on bcc use: ?bcc=

Mailchain Address format examples:

  • [account name]@mailchain.com
  • [ENS-name].eth@ens.mailchain.com
  • [ethereum-address]@ethereum.mailchain.com
  • [unstoppable-domain]@unstoppable.mailchain.com

Example:

[https://app.mailchain.com/mailto:mishadv.eth@ens.mailchain?subject=We met at EthDenver!](https://app.mailchain.com/mailto:mishadv.eth@ens.mailchain?subject=We met at EthDenver!)

Meet the writer

Misha Deville
Mailchain
Head of BD & Parnterships at Mailchain, Ex-AWS