Assalomu alaykum, yordam.uz saytimizga xush kelibsiz.
Bu saytda o`zingizni qiziqtirgan savollarga javob olishingiz va o`z sohangiz bo`yicha savollarga javob berishingiz mumkin. Bizning Oilamizga a'zo bo`lganingiz uchun chuqur Minnatdorchilik bildiramiz !!!

php da turib pochtadan pochtaga xabar jo`natish da xatolik

+1 ovoz
86 marta ko‘rilgan
so‘radi 07 dekabr, 18 BAXA (27 bal)
tahrirlandi 07 dekabr, 18 Saidolim

php da turib pochtadan pochtaga xabar jo`natish da xatolik

ro`yhatdan o`tkandan kegin pochta orqali user ga message boradi. 

Qilib ko`rdim

<?php

require_once "lib/class.phpmailer.php";
$mail = new PHPMailer;
$mail->IsSMTP();
$mail->Host = 'smtp.gmail.com';
$mail->SMTPAuth = true;
$mail->SMTPSecure = "ssl";
$mail->Port = 465;
$mail->CharSet = "UTF-8";
$mail->Username = 'baxa.programmer@gmail.com';
$mail->Password = 'betta parolim';
$mail->setFrom('baxa.programmer@gmail.com', 'Системный администратор: ');
$mail->addAddress('bahromabduxalilov@gmail.com', 'My Friend');
$mail->addAttachment("image/rak.jpg");
$mail->Subject  = 'First PHPMailer Message';
$mail->Body     = 'Hi! This is my first e-mail sent through PHPMailer.';
if($mail->send()) {
    echo 'Message has been sent.';
} else {

  echo 'Message was not sent. ';
  echo 'Mailer error: ' . $mail->ErrorInfo;
}

?>

mana xatolik

Message was not sent. Mailer error: The following From address failed: baxa.programmer@gmail.com : MAIL not accepted from server,530,5.5.1 Authentication Required. Learn more at 530 5.5.1 https://support.google.com/mail/?p=WantAuthError 11-v6sm4083740ljv.1 - gsmtp

SMTP server error: 5.5.1 Authentication Required. Learn more at 530 5.5.1 https://support.google.com/mail/?p=WantAuthError 11-v6sm4083740ljv.1 - gsmtp

SMTP server error: 5.5.1 Authentication Required. Learn more at 530 5.5.1 https://support.google.com/mail/?p=WantAuthError 11-v6sm4083740ljv.1 - gsmtp

Pochtani nastroykasidan IMAP ni yoqdim

2 Javoblar

0 ovoz
javob berdi 07 dekabr, 18 parmonov98 (1,397 bal)
https://myaccount.google.com/lesssecureapps?pli=1

shu manzilga o'tib switcherni on qilib keyin sinab ko'ring. bo'lmasa demak parol noto'g'ri bo'ladi.
0 ovoz
javob berdi 12 dekabr, 18 MasterC (24 bal)
$mail->SMTPAutoTLS = true;
$mail->Port = 587;
$mail->SMTPSecure = 'tls';

qilib ko'ring

Assalomu alaykum, yordam.uz saytimizga xush kelibsiz.

Bu saytda o`zingizni qiziqtirgan savollarga javob olishingiz va o`z sohangiz bo`yicha savollarga javob berishingiz mumkin.

Bizning Oilamizga a'zo bo`lganingiz uchun chuqur Minnatdorchilik bildiramiz !!!

Telegram kanal YordamUzRss

...