Reach your community with web3 email.

Add web3 email to your project.

Mailchain makes it possible to communicate in a web3-native way. With our SDK, developers can easily add web3 email to their own projects and applications, allowing them to engage with their users in a truly web3 way.
$ npm install @mailchain/sdk
web3 email inboxweb3 email message
import { Mailchain } from '@mailchain/sdk';

const secretRecoveryPhrase = process.env.SECRET_RECOVERY_PHRASE!;

const mailchain = Mailchain.fromSecretRecoveryPhrase(secretRecoveryPhrase);

const result = await mailchain.sendMail({
    from: `allofweb3.eth`, // sender address
    to:  [`epistola.lens`], // list of recipients
    subject: 'Mailchain now supports .lens profiles 🌿', // subject line
    content: {
         text: 'Hello Frenz 👋', // plain text body
         html: '<p>Hello Frenz 👋</p>', // html body

web3 email code
Blockchain email messageweb3 email solutionblockchain email inbox

// SDK & Tools

Build with Mailchain using our SDK and dev tools
The icon for a Github repo
Mailchain SDK for sending messages
The icon for a Github repo
An ever growing list of example projects showing how to use Mailchain SDK.

// Mailchain is multichain, we're compatible with all EVMs and major chains

## Hello frens 👋, this means you can communicate with anyone across any chain!
Install our SDK
Learn how to add web3 email to your app
Read Our Docs
$ npm install @mailchain/sdk
The copy to clipboard icon
Get your own unified web3 email inbox
Start sending and receiving secure, private web3 email today

// What you can do with Mailchain

Notifications & Updates
Enable apps to keep users informed with timely event-based notifications
Activity Rollups
Inform your users of all the latest developments and features they can use
Direct Communication
Enable users to connect and build communities with one-to-one messaging
Web3 Authentication
Enable users to access your app in a simple and secure way
Send beautiful and informative newsletters to your users and community.
Trade Receipts
Ensure all trades and transactions are archived with trade receipts.
Scheduled Updates
Deliver scheduled updates about dApps performance, usage statistics, or any other useful information to those who need it.
User Onboarding
Guide new users with a personalised onboarding experience, setup instructions, and verifications.
Support Tickets
Get support tickets, spam reports, and bug reports into a secure and private inbox.
Trade Offers
Communicate trade offers, deals and other transactions to the right person privately.

// Mailchain is

A cryptographic key of 256 characters being partial obscured by a blurry box suggesting privacy
Mailchain doesn't need to know your private keys to send and receive messages from existing blockchain addresses. Instead, it works with a unique identity key, and corresponding signing and encryption keys for each registered account.
A series of identities represented by names suggestion account abstraction
You can use your existing wallet address with your Mailchain account to create messaging keys. This abstracts your wallet keys from your messaging keys to help maintain privacy and safety.
web3 email tech stack
Mailchain’s SDK works alongside your favourite tools and technologies allowing you to build however you want. Our SDk is easy to install and gives you the functionality to start sending and receiving web3-native emails immediately.
A series of web3 identities in one inbox suggesting multiple identities
Mailchain addressing provides broad support for known address schemes, including Mailchain accounts and identities, blockchain protocol addresses, and Web3 names. We also support a selection of short hand addresses (e.g. alice.eth for ENS, alice.lens for Lens, alice.near for NEAR, etc.)
web3 email handles and profiles
We want to make sure you can communicate in anyway that you want to, with any identity that you wish. That is why we support a range of web3 and decentralized identities, allowing you to communicate from and to all of them.
web3 email inbox
A simple, unified inbox application that makes it easy for users to view and send messages using the protocol and to keep track of their on-chain activity. Our interface is designed to be intuitive to use across all of your wallets and identities. It's just like using email.

// Check out some of our Case Studies

The integration of Mailchain's web3 communication protocol into Tezos's platform has improved communication across the Tezos ecosystem of creators and artists. Take a dive into the story behind this partnership.

This revolution in social networking is incredible, and now it comes with the added benefit of web3 email for those conversations that are better private.

Super charge your ENS domain and give power to your .eth address by turning it into a web3 email inbox!

// Frequently asked questions

Why has Mailchain developed its own protocol?
There is no purpose-built communication protocol that supports group or one-to-one, end-to-end encrypted communication between web3 identities.

There are big challenges related to using other protocols. Constraints include scalability, security, and price volatility challenges.

Mailchain's protocol is purpose built for secure and private communication. It natively handles encryption, addressing, key lookups, transport, and storage.
Will Mailchain be fully decentralized?
Yes. Mailchain will be progressively decentralized. Our initial priorities are user experience, security, and supporting user-owned identity and data. Mailchain will then decentralize its protocol functions with an incentivization structure that encourages members of the community to participate in running infrastructure.
What is a Secret Recovery Phrase?
A Secret Recovery Phrase, sometimes known as a "mnemonic seed phrase" is used to mathematically derive all the messaging keys, private keys, signatures and other secrets for your account.

It should never be shared with anyone because doing so would give full, irrevocable access to your account. A Secret Recovery Phrase cannot be changed or recovered.
Can I send a message to or receive email from a traditional email address?
Not yet. Mailchain is a web3 communication protocol that works with web3 identities (e.g. blockchain wallet addresses and names), guaranteeing end-to-end encryption and verified sender origin. It does not support sending messages to or from traditional email. There is an open feature request here We'd love to hear your thoughts on this.
Who can read my messages?
Mailchain messages are encrypted end-to-end. This means that once the sender has encrypted a message using the recipient's encryption key, only the recipient is able to decrypt it. The sender also keeps an encrypted version of the message.

Mailchain cannot read your messages, the storage provider cannot read your messages, your internet service provider cannot read your messages.
Are my messages stored on the blockchain?
No. When a message is sent, the message is encrypted and stored on distributed storage. An encrypted "delivery request", which contains information for the message recipient to be able to collect their encrypted message, is sent as a blockchain transaction. Once a message has been collected, it will be stored in the recipient's inbox, and can be removed from the distributed storage location.
Can someone run their own Mailchain infrastructure?
As protocol functions are decentralized, anyone will be able to run their own Mailchain infrastructure.
How much does it cost to send a message on Mailchain?
Mailchain’s economic model is designed to be sustainable. It provides a "public good" quota of free messages for human users ensuring anyone can have access to secure, private communication at no cost. The model also supports the protocol and its infrastructure providers through message fees for high volume senders. Fees are targeted to be below $0.005.
Email that's built for Web3. Read, Write, Own.