Skip to main content

Sending Messages

Using Mailchain you can send a message to any blockchain address. Only the owner of the address will be able to receive and read the message.

Send your first message

import { Mailchain } from '@mailchain/sdk';

const secretRecoveryPhrase = process.env.SECRET_RECOVERY_PHRASE!; // 25 word mnemonicPhrase

const mailchain = Mailchain.fromSecretRecoveryPhrase(secretRecoveryPhrase);

const result = await mailchain.sendMail({
from: `[email protected]`, // sender address
to: [`[email protected]m`], // list of recipients (blockchain or mailchain addresses)
subject: 'My first message', // subject line
content: {
text: 'Hello Mailchain 👋', // plain text body
html: '<p>Hello Mailchain 👋</p>', // html body


You can send a message to your [email protected], or if you've registered an ethereum address you can send a message to it (e.g. [email protected]). You can also try sending a message to [email protected]m, that's a valid, unmonitored address at Mailchain, we own the private key for it.

After the message is successfully sent you will be able to see it in your sent folder and the recipient will see it in their inbox.


The Mailchain app checks for messages and updates the inbox in the background. You can force a refresh by clicking on the refresh icon above the list of messages.