sending emails

I dont know why am i getting this error as invalid recipent…this is the following code which i have is showing errror.Please do guide me,its very urgent…

<?php $To = "[email protected]"; $Subject = "Registration Confirmation"; $Message = "Congraluations,You have Registered Successfully"; $From = "[email protected]"; if(mail($To,$Subject,$Message,$From)) { echo '

SMTP: ', ini_get('SMTP'), '

'; echo '

sendmail_from: ', ini_get('sendmail_from'), '

'; echo "Message Sent"; } else { echo '

SMTP: ', ini_get('SMTP'), '

'; echo '

sendmail_from: ', ini_get('sendmail_from'), '

'; echo "Message Not Sent"; } ?>

After executing shows Error as :
Warning: mail() [function.mail]: SMTP server response: 550 Invalid recipient: [email protected] in C:\wamp\www\testing\sendmail.php on line 6

Fatal error: Maximum execution time of 30 seconds exceeded in C:\wamp\www\testing\sendmail.php on line 7

Thanks a lot for your support in advance.

Sponsor our Newsletter | Privacy Policy | Terms of Service