Answer the question
In order to leave comments, you need to log in
PHPMailer Error 500 Internal Server Error?
I'm trying to send a letter via Yandex smtp. When submitting the form, I get the error "send.php Status Code: 500 Internal Server Error"
What I did:
1. Changed the MX record. In the domain settings in the connect.yandex.ru service, it says "The domain is confirmed and ready to go"
2. Uploaded PHPMailer to the hosting. Three files in the folder /PHPMailer/PHPMailer/ (Exception.php, PHPMailer.php, SMTP.php) and send.php with my settings to the root of the site.
A piece of send.php:
$mail->Host = 'smtp.yandex.com'; // Specify main and backup SMTP servers
$mail->SMTPAuth = true; // Enable SMTP authentication
$mail->Username = '[email protected]'; // SMTP username
$mail->Password = 'password'; // SMTP password
$mail->SMTPSecure = 'ssl'; // Enable TLS encryption, `ssl` also accepted
$mail->Port = 465;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question