A
A
Alexander Buyan2017-11-21 13:27:28
PHP
Alexander Buyan, 2017-11-21 13:27:28

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:
5a13ff8d7eb43746488532.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Yanyshev, 2017-11-21
@villiwalla

snippet from phpmailer example

if(!$mail->send()) {
  echo 'Message was not sent.';
  echo 'Mailer error: ' . $mail->ErrorInfo;
} else {
  echo 'Message has been sent.';
}

Not enough data for error output
var_dump($mail)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question