🚧🚧 Aaaah sry... not finished with this one yet! 🚧🚧

In a nutshell:

You can send emails to And receive them with server-sent events.

Check it out:

Send an email to

Or stream it yourself:
curl -LN

What is it doing?

mail-fu is really super simple: The endpoint gives you a text/event-stream of server-sent events.

Sending an email to this :mailbox publishes the email to the event stream. The email never ever touches a disk or any other persistent storage and is completely ephemeral.

Using your own domain

If you want to stream emails from your own domain, you have to create a MX entry:   MX  10

The value of the MX entry is 10 where 10 is just a convenient value for the priority (only important if you are using more than one mailserver).

Now in order to stream from e.g., you have to change the request url a little bit: 

And thats it!


Stream URL

Calling this URL results in a event stream of emails sent to :mailbox@:domain

The :domain param is optional. The request will redirect to the url with the default domain


The streamed mails have the following properties - taken from the awesome


Property Type Description
headers object a Map object with lowercase header keys
subject string subject is the subject line
from Address from is an address object for the From: header
to Address to is an address object for the To: header
cc Address cc is an address object for the Cc: header
bcc Address bcc is an address object for the Bcc: header (usually not present)
date Date date is a Date object for the Date: header
messageId string the Message-ID value string
inReplyTo string the In-Reply-To value string
reply-to Address reply-to is an address object for the Cc: header
references string[] references is an array of referenced Message-ID values
html string html is the HTML body of the message. If the message included embedded images as cid: urls then these are all replaced with base64 formatted data: URIs
text string the plaintext body of the message
textAsHtml string the plaintext body of the message formatted as HTML
attachments Attachment[] attachments is an array of attachments


Property Type Description
value Array<{name: string, address: string, group: string[]}>

an array with address details

  • name is the name part of the email/group
  • address is the email address
  • group is an array of grouped addresses
text string formatted address string for plaintext context
html string formatted address string for HTML context


  value: [
          address: '',
          name: 'Andris Reinman'
          address: '',
          name: ''
  html: '<span class="mp_address_name">Andris Reinman</span> <<a href="" class="mp_address_email"></a>>, <a href="" class="mp_address_email"></a>',
  text: 'Andris Reinman <>,'


Property Type Description
filename string (if available) file name of the attachment
contentType string MIME type of the message
contentDisposition string content disposition type for the attachment, most probably “attachment”
checksum string a MD5 hash of the message content
size number message size in bytes
headers object a Map value that holds MIME headers for the attachment node
content string a base64 string that contains the attachment contents
contentId string the header value from ‘Content-ID’ (if present)
cid string contentId without < and >
related boolean if true then this attachment should not be offered for download (at least not in the main attachments list)
Made with 💖 by @pbedat