SMTP ERROR: DATA END command failed: 553 Relaying disallowed as swdpankaj@gmail.com
SMTP Error: data not accepted.
Mailer Error: SMTP Error: data not accepted.SMTP server error: DATA END command failed Detail: Relaying disallowed as swdpankaj@gmail.com SMTP code: 553
We found this error when try to send email using zoho SMTP and used other email accept zoho as from email email.
As for example when you try to use this code. Then it shows error.
$mail = new PHPMailer(); // create a new object
$mail->IsSMTP(); // enable SMTP
$mail->SMTPDebug = 1; // debugging: 1 = errors and messages, 2 = messages only
$mail->SMTPAuth = true; // authentication enabled
$mail->SMTPSecure = 'tls'; // secure transfer enabled REQUIRED for Gmail
$mail->Host = "smtppro.zoho.in";
$mail->Port = 587; // or 587
$mail->Username = "developer@digicommerce.co.in";
$mail->Password = "asdasdasdasdsadasdasdasd";
$mail->SetFrom("swdpankaj@gmail.coml");
$mail->isHTML(true);
$mail->Subject = $subject;
$mail->Body = $message1;
$mail->AddAddress("digicommercepankaj@gmail.com");
But when try to use this code. It will successfully sent the email.
$mail = new PHPMailer(); // create a new object
$mail->IsSMTP(); // enable SMTP
$mail->SMTPDebug = 1; // debugging: 1 = errors and messages, 2 = messages only
$mail->SMTPAuth = true; // authentication enabled
$mail->SMTPSecure = 'tls'; // secure transfer enabled REQUIRED for Gmail
$mail->Host = "smtppro.zoho.in";
$mail->Port = 587; // or 587
$mail->Username = "developer@digicommerce.co.in";
$mail->Password = "asdasdasdasdsadasdasdasd";
$mail->SetFrom("developer@digicommerce.co.in");
$mail->isHTML(true);
$mail->Subject = $subject;
$mail->Body = $message1;
$mail->AddAddress("digicommercepankaj@gmail.com");
Comments
Post a Comment