SMTP server error: Relaying disallowed
I had configure the parameters of the script with the info about how to configure SMTP server, at this link:
https://zohomail.wiki.zoho.com/IMAP-Access-1.html
with this kind of content:
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->SMTPAuth = true;
$mail->SMTPSecure = "ssl";
$mail->Host = "smtp.zoho.com";
$mail->Port = 465;
$mail->Username = "info@devita.net.au";
$mail->Password = "hidden";
$mail->From = "foo@gmail.com";
$mail->FromName = "Paolo Rossi";
$mail->AddAddress("info@devita.net.au");
$mail->Subject = "Test with PHPMailer";
$mail->Body = "This is a sample body text!";
$mail->IsHTML (true);
Is there something wrong with my code, or i have to activate something with my account?
Best Regards!