2
I’m making the following mistake :
"Error: SMTP Error: Data not accepted."
Yesterday was working well, today started giving this error.
Yesterday the marketing people used to send mass message, I’m thinking it might be the server that exceeded the capacity.
$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;
}
Thank you very much my friend, your tip was very helpful, it returned me this error now ERROR: The data is not accepted by the server: xxxxxxx full mailbox; now know that the problem should be the storage, I only have a doubt, the storage and on my Server, where the system is hosted, or and the email inbox we use in the case here Officer 365.
– Jardel Araujo
@Jardelaraujo good afternoon, look I believe it is office 365, but it can also be your server. I believe that you can solve. Because now you have filtered the problem. See which email you are sending via smtp, mark this account as unlimited. Then check your server for any storage locks. I hope I helped. Hug
– user148170