正在获取错误“错误:SMTP错误:数据不被接受。”

时间:2019-06-18 14:34:15

标签: smtp phpmailer

我有以下问题。 “错误:SMTP错误:数据不被接受。”昨天运行良好,这是从此错误开始的。

昨天,营销人员曾经发送大量邮件,我认为这可能是服务器超出了容量。

$mail = new PHPMailer();
$mail->IsSMTP();
$mail->SMTPSecure = "tls";
$mail->SMTPAuth   = true;   
$mail->Host       = "smtp.office365.com"; // SMTP server
$mail->Port       = "587";
$mail->From       = "meu@email";//remetente
$mail->Username   = "meu@email";
$mail->Password   = "minhaSEnha";
$mail->FromName   = "Empresa | Administração";
$mail->AddReplyTo("meu@email");
$mail->AddAddress($variavelcomemailcliente);
$mail->Subject = "titulo da menssagem";
$mail->IsHTML(true);

$mail->AddAddress($variavelcomemailcliente);

if($emailcliente!=$variavelcomemailcliente){
  $mail->AddBCC($emailcliente);
}

$mail->AddBCC("meu@email", "Empresa");

$mail->Body = $html;

if(!$mail->Send())
{
  echo "Mensagem não foi enviada!";
  echo "Erro: " .$mail->ErrorInfo;
}

0 个答案:

没有答案