Redirect To Mailto

Published on May 30, 2022 | Tags: HTML web TIL

I created an internal redirect app to manage redirects inside the website so I could handle them in the admin/database, However, I soon discovered that sending a redirect response pointing to some mailto:<mail address> did not work!


Fortunately there's a workaround to this. You can, instead, return an HTTP response with the following content:


<meta http-equiv="refresh" content="0;url=mailto:your@mail.com" />

Ref.: https://stackoverflow.com/a/25654736/2088699


Ferran Jovell