Warning: mail() [function.mail]: SMTP server response: 550 Invalid recipient:
<p>I'm creating a 'forgot password' page where the user enters their email address and the script finds the password associated to that email, and sends it to the stored email address.</p>

<p>I believe the problem has to do with my SMTP Mailserver. I am using WAMP which doesn't have one so I downloaded one that was free. </p>

<p>This is the php script I'm using:</p>

<pre><code>    $id = checkEmail($email);
    $record = readMemberRecord($id);
    $password = @mysql_result($record,0,'cred');

    if($password){
        $email_subject = "Email Request";
        $email_body = "Your password is ".$password.".";
        $header = "NinjaMan";
        mail($email, $email_subject, $email_body,$header);
        $msg = "Your password has been sent to ".$email.".";
    }else{
        $msg = "Sorry, the email ".$email." wasn't found.";
    }
</code></pre>

<p>The $msg outputs properly so I know the code is passing the mail function.</p>
