I have finished my site but my issue is when I tried to submit a contact to see if it works, I keep getting the error " Cannot GET /[email protected] ". I was hoping some can help me with what I'm doing wrong.
I have tried changing the input into a button but it still gave me an error.
<form class="form-wrap" action="[email protected]" method="Get" enctype="text/plain">
<input type="text" placeholder="Name">
<input type="email" placeholder="Email">
<textarea placeholder="Message" name="Message"></textarea>
<input type="submit" name="submit" value="Send">
</form>
The error message below is what I keep on getting.
Cannot GET /[email protected]
Nick Parsons
51.7k6 gold badges62 silver badges80 bronze badges
2 Answers 2
You need to change your action to mailto:
<form class="form-wrap" action="mailto:[email protected]" method="Get"
enctype="text/plain">
Sign up to request clarification or add additional context in comments.
Comments
Method should be post. Will receive these details. Method='post' and action="mailto:[email protected] it will work.
1 Comment
Bojurie
Thank you it works perfectly now. I really appreciate your help.
lang-html
action="[email protected]"is not valid, what do you expect this to do?action. You have passed an email.