Answer the question
In order to leave comments, you need to log in
How to implement callback order form?
Made a landing. But I can't figure out the feedback form. The user enters a name and phone number in the form, clicks submit, and the result should come to the site owner's email.
Tried scripts with ()sendmail, ()mail. By clicking "send" I left the page to the script.php itself, or nothing happened, the letter did not come.
Please tell me how normal people implement the feedback form, and not those who can only remake the template.
Answer the question
In order to leave comments, you need to log in
Using ajax, you send a request to script.php, where you process the received data, form a letter and send it to the mail.
To form and send a letter, you can use some class for working with e-mail. This can be googled.
Sending emails does not work on some hosting, try to place a file with the send function in another hosting and send data to it. Already encountered many times during development
If you're developing on Windows, take a look at the Test Mail Server Tool.
This program will help you check the functionality of sending emails.
Check out the jbcallme plugin. In the free version, the postmaster.php file is in the archive.
If the problem is on the server side, and the mail is not sent, try the paid version of this module. there sending through their server goes. But first, check your Spam folder. Maybe all the letters went there.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question