Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Mailthis.to Example
<form action="https://mailthis.to/example" method="POST" encType="multipart/form-data">
<h3>Contact Form (example)</h3>
<!-- Name -->
<input type="email" name="name" placeholder="Your name">
<!-- Email -->
<input type="email" name="email" placeholder="you@mail.com">
<!-- Phone Number -->
<input type="text" name="phone" placeholder="+1 (255) 555-5555">
<!-- Textarea (Message) -->
<textarea name="message" placeholder="Enter your message here" style="height:90px"></textarea>
<!-- File attachments -->
<input type="file" name="file" placeholder="">
<!-- Optional (hidden) fields -->
<!-- Custom email Subject -->
<input type="hidden" name="_subject" value="Contact form submitted">
<!-- Custom email ReplyTo Address -->
<input type="hidden" name="_replyto" value="foo@bar.co">
<!-- Redirect to a page after recaptcha -->
<input type="hidden" name="_after" value="https://myhomepage.net/">
<!-- Honeypot (to catch comment spam bots) -->
<input type="hidden" name="_honeypot" value="">
<!-- Apply a custom confirmation message on the second step -->
<input type="hidden" name="_confirmation" value="">
<!-- Submit Button -->
<input type="submit" name="submit" value="Submit Form" class="btn btn-primary">
</form>
@matiasgys

This comment has been minimized.

Copy link

commented Oct 24, 2018

Hi
I have a problem with the redirect page, sometimes don´t redirect for the page that I put and redirect to a random page.

This is my code:
<form action="https://mailthis.to/xxxxx@xxxxx.com" method="POST" encType="multipart/form-data"> <label for="form-email">Nombre*:</label> <input type="text" name="nombre" required> <label for="form-email">Email*:</label> <input type="email" name="_replyto" required> <label for="form-email">Telefono:</label> <input type="text" name="telefono" > <input type="hidden" name="_subject" value="Formulario de contacto Web"> <input type="hidden" name="_after" value="http://labagualachacras.com/chacras/gracias.html"> <input type="hidden" name="_honeypot" value=""> <input type="hidden" name="_confirmation" value="Gracias"> <input type="submit" value="Enviar"> </form>

@aniav

This comment has been minimized.

Copy link

commented Dec 29, 2018

I have the same thing, no matter if the redirect is set or empty, I am redirected to dental solutions or some other random page...

@RoseReaper

This comment has been minimized.

Copy link

commented Jan 18, 2019

I meet the same problem. Has anyone been able to fix this?

@ulpoh

This comment has been minimized.

Copy link

commented Jun 4, 2019

Hi guys,

I am new to mailto so i noticed that i couldn't see the test mail sent to my email box.

I only got the message from mailto "You received this because you signed up for MailThis.to, a form to email service.

without showing the content of the mail

Have a Wonderful Day!"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.