I'm building a website on my local computer and I want to send emails. I found the mail() function but I cannot get it to work. I call it like this:
mail($email,"Forum Registration Key",
"Copy and paste this key into the box on the registration page:\n$randkey",
"From: localhost");
I have tried variations on From, ie. noreply@localhost, etc, but I keep getting this error:
Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for (whatever $email is) in C:\PHP Site\forum\b1\actionp.php on line 122
What exactly is the problem and how can I get this to work?