DEV Community

Cover image for Redirect emails to webhook.
Toche Camille
Toche Camille

Posted on

1

Redirect emails to webhook.

Hey,

I've been working the last few days on a sideproject to redirect emails to webhook.
The idea behind Mailhook is to generate an unique email address, just for you. Once you have received any email, it gets redirected to the chosen webhook url.

Here is what the JSON sent to the webhooks looks like :

{
"id": "91a2-8632a",
"received_at": "2021-04-10 12:04:42",
"host": "mailhook.app",
"from": "purchase@mailhook.app",
"to": "l0r3m@mailhook.app",
"subject": "Your order nΒ°64",
"text": "Thank's for your order! Lorem ipsum dolor sit amet...",
"textAsHtml": "
<img src='https://mailhook.app/mailbox.svg' />
<h1>Thank's for your order!</h1>
<p>Lorem ipsum dolor sit amet...</p>
",
"attachments": [
{
"filename": "receipt_order_64.pdf",
"size": 17241,
"contentType": "application/pdf",
"link": "https://s3.amazonaws.com/91a2-8632a/receipt_order_64.pdf",
}
],
"spamScore": 0,
}
view raw mailhook_example.js hosted with ❀ by GitHub

There is a free but not time limited plan to try.

Let me know what you think πŸ˜„

The website : https://mailhook.app
ProductHunt : https://www.producthunt.com/posts/mailhook-app

Top comments (0)

Sentry image

See why 4M developers consider Sentry, β€œnot bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay