Can someone please tell me how to send my contact form data to my email? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can someone please tell me how to send my contact form data to my email?

Here is the code i have written so far in html : <form class="contact-form" action="mailto:@gmail.com" method="post"> <input type="text" class="contact-form-text" placeholder="Votre Nom et prénom"> <input type="email" class="contact-form-text" placeholder="Votre email"> <input type="text" class="contact-form-text" placeholder="Votre numéro de téléphone"> <select type="text" class="contact-form-text" placeholder="Type de bijoux"> <option value="Type de bijou">Type de bijoux</option> <option value="Collier">Collier</option> <option value="Pendentif">Pendentif</option> <option value="Braclet">Braclet</option> <option value="Bague">Bague</option> <option value="Chevalière">Chevalière</option> <option value="Alliances">Alliances</option> <option value="Boucles d'oreilles">Boucles d'oreilles</option> <option value="Porte clé">Porte clé</option> <option value="Épeingle à cheveux">Épeingle à cheveux</option> <option value="Grills">Grills</option> <option value="Médaille">Médaille</option> <option value="Autre">Autre</option> </select> <textarea class="contact-form-text" placeholder="Description de ce que vous souhaitez"></textarea> <input type="file" id="myFile" name="filename" method="post" enctype="text/plain" > <input type="submit" class="contact-form-btn" value="Envoyer" href="mailto:@gmail.com"> </form>

4th May 2020, 12:07 PM
Julia Melina Moi
Julia Melina Moi - avatar
1 Answer
0
You have to use php for this. Add a php script send the form data to that php and then the php file will blast the data to the mail address. Follow this link to know more - https://www.campaignmonitor.com/blog/email-marketing/2019/04/how-to-create-an-html-form-that-emails-responses-to-your-inbox/
4th May 2020, 12:22 PM
Vishal Srivastava
Vishal Srivastava - avatar