Answer the question
In order to leave comments, you need to log in
Why is there an error when submitting an email form?
Hey guys. Problem.
On the local (open server) messages are sent to "Ura". But after uploading to the hosting, the form gives an error when submitting, see for yourself: byjan.ru/CHPU/order.php
What's the matter? There are suspicions?
Here is an example code:
Answer the question
In order to leave comments, you need to log in
snippet from phpmailer example
if(!$mail->send()) {
echo 'Message was not sent.';
echo 'Mailer error: ' . $mail->ErrorInfo;
} else {
echo 'Message has been sent.';
}
var_dump($mail)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question