New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
yandex smtp don't work #283
Comments
You need to post your code. I can't guess your problem. If they have changed port, change your code to match. |
My code: <?php
require 'PHPMailerAutoload.php';
$mail = new PHPMailer;
$mail->SMTPDebug = 3; // Enable verbose debug output
$mail->isSMTP(); // Set mailer to use SMTP
$mail->Host = 'smtp.yandex.com'; // Specify main and backup SMTP servers
$mail->SMTPAuth = true; // Enable SMTP authentication
$mail->Username = 'satis@yandex.com.tr'; // SMTP username
$mail->Password = 'aaaaa'; // SMTP password
$mail->SMTPSecure = 'ssl'; // Enable TLS encryption, `ssl` also accepted
$mail->Port = 465; // TCP port to connect to
$mail->From = 'satis@a.gen.tr';
$mail->FromName = 'satis@yandex.com.tr';
$mail->addAddress('nurettin@a.com', 'a'); // Add a recipient
$mail->addAddress('nurettin@a.com'); // Name is optional
$mail->addReplyTo('satis@yandex.com.tr', 'aaa sitesii');
//$mail->addCC('cc@example.com');
//$mail->addBCC('bcc@example.com');
$mail->isHTML(true); // Set email format to HTML
$mail->Subject = 'konu başlıgı';
$mail->Body = 'This is the HTML message body <b>in bold!</b>';
$mail->AltBody = 'This is the body in plain text for non-HTML mail clients';
if(!$mail->send()) {
echo 'Message could not be sent.';
echo 'Mailer Error: ' . $mail->ErrorInfo;
} else {
echo 'Message has been sent';
} if my local (win) run it is ok Error:
Note: |
SSL on 465 is deprecated and Yandex supports TLS on port 587, so use this: $mail->SMTPSecure = 'tls';
$mail->Port = 587; If that doesn't work it could be a DNS or firewall problem - try these:
|
Thanks |
Hi, |
If yandex have changed their server details, you will need to update yours to match. Try the same troubleshooting techniques I posted before. |
This is my result of yandex :(
|
You need to do what I said above - enable encryption. Yandex (like most sensible email services) will not let you use authentication without encryption, which is exactly what the error message says. |
You must use the app password in order to send the message thru PHPMailer |
Hi,
now yandex smtp don't work
How to work?
(Yandex update smtp port)
The text was updated successfully, but these errors were encountered: