K
K
Kirill2018-04-06 23:03:34
PHP
Kirill, 2018-04-06 23:03:34

PHP contact form not working?

ClosedClosedClosedClosedClosedClosed
ClosedClosedClosedClosedClosedClosed

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
ipokos, 2018-04-07
@ipokos

You at the service station will also say "my car does not work, what's wrong here?" ?
What is the problem, what is the error?
If nothing is clear at all, then check this:

$to = '[email protected]';
$subject = 'subject';
$message = 'test';
$headers = 'From: [email protected]' . "\r\n" .
    'Reply-To: [email protected]' . "\r\n" .
    'X-Mailer: PHP/' . phpversion();

mail($to, $subject, $message, $headers);

If it does, check the hodgepodge of checks and the like.
If not sent, then check the smtp settings

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question