Hi All,

I had created the php script which is used to send email to all the folk on their mentioned email id, but after clicking on the submit button i received an error message

Warning: mail(): SMTP server response: 530 5.7.1 Client was not authenticated


my company using windows server 2008 R2

Please guys help me out. Its really very important for my project
Please find the test code below

Code:
<?php

$from="test@xyz.com";
$email=$_POST['email'];
$subject=$_POST['subject'];

$message=$_POST['message'];

mail($email, $subject, $message,"From:".$from);

print "email has been sent : </br> $email</br>$subject</br>$message</br>";


?>