It seems to be working fine all the way up to when this part of the code executes...
mail($email_address, $subject, $message, "From: MyDomain Webmaster<email@example.com>\n X-Mailer: PHP/" . phpversion()); echo 'Your membership information has been mailed to your email address! Please check it and follow the directions!';
It tries to send the email, it echos out the 'Your membership....message' and then I get an email which says:
Subject: Delivery Status Notification (Failure)
The following message to <firstname.lastname@example.org> was undeliverable.
The reason for the problem:
5.1.0 - Unknown address error 550-'Administrative prohibition'
NB: I did substitute the email for this post
Any ideas on what might be causing this error.
I am running the script from localhost and have gone into the php.inin file and changed the mail settings to my outgoing smtp server.