0

how to create a contact form and mail it to my inbox in HTML?

i have written a HTML code to fill up a Form and mail the info to my E-mail address but when I execute this I did'nt get any email! I'm a NOOB!!!!!!!! <form id="contact_form" action="mailto:srtramganesh82@gmail.com" method="POST" > <div> <label for="name">Your name:</label><br /> <input id="name" class="input" name="name" type="text" value="" size="30" /><br /> </div> <div> <label for="email">Your email:</label><br /> <input id="email" class="input" name="email" type="text" value="" size="30" /><br /> </div> <div> <label for="message">Your message:</label><br /> <textarea id="message" class="input" name="message" rows="7" cols="30"></textarea><br /> </div> <input id="submit_button" type="submit" value="Send email" /> </form>

22nd Aug 2017, 9:12 AM
I Am RG
I Am RG - avatar
3 Respostas
+ 6
the error happens as you are trying to open your mailto+ email entered as a link. check this code and debug yours the 1st form will open your email app. https://code.sololearn.com/Wqn0EM3Mo5Pq/?ref=app source: https://www.thoughtco.com/tutorial-on-mailto-forms-3467454
22nd Aug 2017, 9:39 AM
Lord Krishna
Lord Krishna - avatar
+ 1
need to post the info and retrieve the post in php variables then send the mail through a email script like swift mailer
23rd Aug 2017, 7:48 AM
Sam Tezel
Sam Tezel - avatar
0
do you want to try to send mail and test it or do you wanna use it in real life ?? cause in real life I use phpmailer in forms so users can send me mail via webpage. https://github.com/PHPMailer/PHPMailer/wiki/Tutorial
22nd Aug 2017, 9:50 AM
Melih Melik Sonmez
Melih Melik Sonmez - avatar