GORAGOD.com

GORAGOD.com

freelance, web developer, web designer, hosting, domain name

ใช้ PHPmailer ส่งเมล cc ไม่ได้ทำไงดี

ใช้ PHPmailer ส่งใหเมลแรก ได้ตามปกติ  แต่พอจะให้คนต่อไป หรือ cc  ส่งไม่ได้ มี error  ไม่รู้จะแก้ยังไง ช่วยที

Code ส่งเมลคนแรก (ไม่มี error)
 $mail = new PHPMailer(); // defaults to using php "mail()"
 $mail->IsSMTP(); // telling the class to use SMTP
 $mail->From       = $SchConfig_mailfrom;
 $mail->MsgHTML($message);
 $mail->AddAddress($email, $name);

code แก้ไขเพิ่ม ส่งมล โดยใช้ CC (มัน error)        
 $mail = new PHPMailer(); // defaults to using php "mail()"
 $mail->IsSMTP(); // telling the class to use SMTP
 $mail->From       = $SchConfig_mailfrom;
 $mail->MsgHTML($message);
 $mail->AddAddress($email, $name);
 $mail->AddCC($email2, $email2);            

มัน error ว่า
Mailer Error: SMTP Error: The following recipients failed: 'xxxxxxx@yahoo.com'
ซึ่ง 'xxxxxxx@yahoo.com' มันเป็นเมลทีใช้คำสั่ง AddCC

ช่วยหน่อยครับ
12 ต.ค. 2552 1 5,227

อืม....

บอกตรงๆว่าไม่รู้เหมือนกัน เพราะไม่เคยส่งแบบ CC

เท่าที่เคยทำ ผมใช้คำสั่ง AddAdress อย่างเดียวครับ และโดยปกติผมจะใช้วิธีวนสูปส่งเมล์ทีละคนมากกว่าจะส่งรวดเดียวหลายๆคน ถึงแม้จะมีข้อความเหมือนๆกัน
#1
ความคิดเห็น
ไฟล์อัปโหลด ชนิด jpg, jpeg ขนาดไฟล์ไม่เกิน 64M
^