Please enable / Bitte aktiviere JavaScript!
Veuillez activer / Por favor activa el Javascript![ ? ]
Why when sending a message via the feedback form it does not come in the mail? - bug-code.com Q&A

Why when sending a message via the feedback form it does not come in the mail?

0 like 0 dislike
19 views
Hello. There is a feedback form and php handler on the server. When filling out the form and send the message, it does not come on indicating to the processor the mail. Here is the form
\r\r\r\r\r

And here is the handler itself:
<?php\r$back = "<p>Back"; if(!empty($_POST['name']) and !empty($_POST['title']) and !empty($_POST['email']) and !empty($_POST['message'])){ $name = trim(strip_tags($_POST['name'])); $title = trim(strip_tags($_POST['title'])); $mail = trim(strip_tags($_POST['email'])); $message = trim(strip_tags($_POST['message'])); mail('my почта@gmail.com', 'Email from website send', 'You wrote: '.$name.'
Header: '.$title.'
His mail: '.$mail.'
His message: '.$message,"Content-type:text/html;charset=windows-1251"); echo "Your message was successfully sent!
You will receive a response in soon
$back"; exit; } else { echo "To send a message fill in all the fields! $back"; exit; } ?>
asked by | 19 views

1 Answer

0 like 0 dislike
See the SPAM folder.
Launched Your script - all successfully worked, Gmail sent it to SPAM
answered by
Welcome to Bug-code Q&A, where you can ask questions and receive answers from other members of the community.

24.8k questions

46.2k answers

0 comments

13.3k users

24,788 questions
46,220 answers
0 comments
13,322 users