Forum Moderators: coopster
I thought my php mailing script was working absolutely fine but encountered a bug by chance.
Whenever the recipient's email address includes a hyphen ( - ), I get the following error message...
Warning: mail() [function.mail]: SMTP server response: 550 Invalid recipient:
I should stress that this only seems to occur when the hyphen is in the URL portion of the address, i.e example@perfect-example.com
The current code works along the lines of...
mail ($_POST['email'], 'Email subject is here', $body, $headers);
Does anybody have any suggestions please?
Cheers