简体   繁体   中英

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM