Answer the question
In order to leave comments, you need to log in
PhpMailer doesn't want to work?
Guys, phpmailer doesn't want to work.
Here is my code
require_once __DIR__.'/class.phpmailer.php';
$Mailer = new PHPMailer();
$Mailer->SMTPDebug = 2;
$Mailer->CharSet = 'UTF-8';
$Mailer->IsSMTP();
$Mailer->Host = 'smtp.yandex.ru';
$Mailer->Port = 25;
$Mailer->SMTPAuth = true;
$Mailer->Username = "gorelov";
$Mailer->Password = "pass";
$Mailer->setFrom('gorelov', 'Mailer');
$Mailer->addReplyTo('gorelov', 'Information');
// $Mailer->addAddress('[email protected]');
$Mailer->Subject = 'Here is the subject';
$Mailer->Body = 'This is the HTML message body <b>in bold!</b>';
$status = $Mailer->Send();
Answer the question
In order to leave comments, you need to log in
Yandex and other Googles have disabled non-ssl connections for a thousand years. not safe.
Try $Mailer->SMTPDebug = 3; and $Mailer->SMTPDebug = 4; More detailed debug modes. Maybe there will be an answer
Alexander Aksentiev redya69 maddog670 Alexander Penshin Anton
Guys, forwarded the code with your clarifications, but nothing has changed(
And it does not show any additional errors. Changed the encryption type and port.
Zero emotions(
$Mailer = new PHPMailer();
$Mailer->SMTPDebug = 2;
$Mailer->SMTPDebug = 3;
$Mailer->SMTPDebug = 4;
$Mailer->CharSet = 'UTF-8';
$Mailer->IsSMTP();
$Mailer->Host = 'smtp.yandex.ru';
$Mailer->Port = 465;
$Mailer->SMTPSecure = 'tls';
$Mailer->SMTPAuth = true;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question