Remake of this "contact form" to send out emails (Ajax)
I have followed this tutorial, and made everything like the tutorial says... When I click submit it says "this wont actually send out emails".
Here is the tutorial
So my Q is this, would it be too hard to "actually send out emails" with this? How can I implement it into this?开发者_JAVA百科
Thanks
PS: No JQuery please...
The simplest method would be to use the PHP mail()
function. Simply plug this into the top of process.php, utilising your form data.
However this will not take into account anything like form validation, spam filtering, abuse throttling, etc. Also, mail()
does not work on every server - if this is the case for you, you will need to look into more advanced options like PHP SMTP libraries.
精彩评论