I want to make a form for users and in that form i want to be name, tel and email. And i want to make a script that should take the name, tel and email and sent to my emai. But i don t know how and where should i put the php code.

<!DOCTYPE html>

<h2>Send e-mail to someone@example.com:</h2>

<form action="mailto:someone@example.com" method="post" enctype="text/plain">
<input type="text" name="name"><br>
<input type="text" name="mail"><br>
<input type="text" name="comment" size="50"><br><br>
<input type="submit" value="Send">
<input type="reset" value="Reset">

  • want to send email in magento 2? – Asad Khan Apr 16 '19 at 11:28
  • where you want to display this form – ASQ Apr 16 '19 at 11:29
  • I made a page for users who want to cancel the order, and on that page I put a form. And the data from that form I want to send them to my mail. – Furtuna Abel Apr 16 '19 at 11:37
  • youtube.com/watch?v=hl6ebKO_EKs&t=460s Something like this – Furtuna Abel Apr 16 '19 at 11:38
  • On my site i want to display. but i dont know how can i add <?php ?> code – Furtuna Abel Apr 16 '19 at 11:44

You Can Try this way for learning a how extension works,and how to send a mail on form submit. please download this extension and install in your project and learn about it :

Extesnion Link

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.