labbinat Posted November 8, 2023 Author Posted November 8, 2023 in " process_registration.php " $mail = new PHPMailer(); $mail->isSMTP(); $mail->Host = 'smtp.gmail.com'; $mail->SMTPAuth = true; $mail->Username = 'remove'; $mail->Password = 'remove'; $mail->SMTPSecure = 'ssl'; $mail->Port = 465;
Krydos Posted November 8, 2023 Posted November 8, 2023 On 11/7/2023 at 11:51 AM, Krydos said: Since you're trying to connect to Gmail you have to use xoauth as they recently disabled simple password authentication. Check out https://github.com/PHPMailer/PHPMailer/blob/master/examples/gmail_xoauth.phps You still can't use password authentication to send emails through Gmail. You have to use xoauth to send through Gmail, or use some other service other than Gmail to use password authentication.
labbinat Posted November 9, 2023 Author Posted November 9, 2023 تم حل المشكلة، شكرا لك. هنا كان الخطأ $mail->SMTPSecure = 'tls'; $البريد->المنفذ = 587; $mail->CharSet = 'UTF-8'; تبقى مشكلة أخيرة وهي أنه في قسم SEO لا أستطيع إدخال كلمات باللغة العربية للبحث يقبل الكلمات الإنجليزية فقط
Recommended Posts