Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

SMTP -> ERROR: DATA not accepted from server: 550 This message was classified as SPAM and may not be delivered

$mail = new PHPMailer();
$mail->IsSMTP();
$mail->Host = "mail.cc.com";
$mail->SMTPAuth = true;
$mail->Username = "info@cc.com";
$mail->Password = "cc";
$mail->From = "cc.com"." <info@cc.com>"; 
$mail->AddReplyTo("cc1@gmail.com");
$mail->FromName = "info@cc.com";
$mail->AddAddress($climail);
$mail->AddCC("cc1@gmail.com");
$mail->Sender="info@cc.com";
$mail->IsHTML(true); 
$mail->WordWrap = 70;
$mail->Subject = $sub;
echo $meegate;
$mail->Body=$meegate;
$mail->SMTPDebug  = 1;
$mail->Send();

Error occurring while sending mail.. mail not sent..

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
314 views
Welcome To Ask or Share your Answers For Others

1 Answer

You need to set SMTP host and also the port I guess which is 465:

$mail = new PHPMailer();
$mail->IsSMTP();
$mail->Host = "smtp.gmail.com";
$mail->SMTPAuth = true;
$mail->Username = "info@gmail.com";
$mail->Password = "cc";
$mail->From = "gmail.com"." <info@gmail.com>"; 
$mail->AddReplyTo("cc1@gmail.com");
$mail->FromName = "info@gmail.com";
$mail->AddAddress($climail);
$mail->AddCC("cc1@gmail.com");
$mail->Sender="info@gmail.com";
$mail->IsHTML(true); 
$mail->WordWrap = 70;
$mail->Subject = $sub;
echo $meegate;
$mail->Body=$meegate;
$mail->SMTPDebug  = 1;
$mail->Send();

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...