Problem sending email with smtp authentication and "Relaying disallowed" message

Problem sending email with smtp authentication and "Relaying disallowed" message

Hi, i'm developing a website and through its contact form the guests can send email.


i've tried to configure PHPmailer on my page, but when i try to send a message i have this error:


SMTP Error: Data not accepted.

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!