I've been scouring the web for a tutorial or code that will enable my "subscribe to my newsletter" to send an email to a certain account, but I am in the very beginnings of web dev, so have no idea on PHP or whatever is needed. I litterally only know the basics of HTML.
So, here is my form's code:
<form action="mail.php" method="POST" class="newsletter">
<h3>Subscribe to our Newsletter</h3><br>
<p>Be the first to hear about our new treatments, special offers and events</p></br>
<input type="text" name="email" placeholder="Enter email address" size=40 class="input"/>
<p><input type="submit" value="Subscribe" class="button" /></p>
I do not currently have a mail.php file, but from what I have read I need that? What code would go in that file?
Also, if I'm using php, would I have to change the file type to .php, instead of .html?