S
S
spike3642014-02-16 13:15:40
PHP
spike364, 2014-02-16 13:15:40

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

4 answer(s)
K
Kirill Arutyunov, 2014-02-16
@arutyunov

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.

N
Novomir Lobanov, 2014-03-04
@novomir

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

S
Shahelm, 2014-02-16
@Shahelm

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.

C
cupron, 2015-06-14
@cupron

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 question

Ask a Question

731 491 924 answers to any question