Last active
September 11, 2023 08:00
-
-
Save kidGodzilla/0952f3bb44ae568dbe60029182bbba6e to your computer and use it in GitHub Desktop.
Mailthis.to Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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="[email protected]"> | |
<!-- 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="[email protected]"> | |
<!-- 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> |
is it not working nowadays?
is it not working nowadays?
It's been broken for two and a half years
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try adding
{responseType: 'text'}
to your post request.Like this:
return this.http.post(this.api, input, { responseType: 'text' })