foranyone
Well-Known Member
سلام
من از کلاس php malier و SMTP برای ارسال میل استفاده میکنم
با این تنظیمات :
متاسفانه این خطا رو میده :
SMTP Error: The following recipients failed: [email protected]
من از کلاس php malier و SMTP برای ارسال میل استفاده میکنم
با این تنظیمات :
کد:
$mail = new PHPMailer();
$mail->IsSMTP(); // send via SMTP
$mail->Host = "mail.1000kar.com"; // SMTP server mail.yourdomain.com
$mail->SMTPAuth = false; // turn on SMTP authentication
//$mail->SMTPSecure = "ssl"; // sets the prefix to the servier
$mail->Username = "user"; // SMTP username [email protected]
$mail->Password = "pass"; // SMTP password
$mail->From = "[email protected]"; //[email protected]
$mail->FromName = "HamraZ";
$mail->AddAddress("$email","$name");
$mail->AddReplyTo("[email protected]","Hamid Rahimi");
$mail->WordWrap = 50; // set word wrap
//$mail->AddAttachment("Path to Attachment "); // attachment
$mail->IsHTML(true); // send as HTML
$mail->Subject = "Registration";
$mail->Body = "$text";
$mail->AltBody = "This is the text-only body";
متاسفانه این خطا رو میده :
SMTP Error: The following recipients failed: [email protected]