Ok, I am setting up a little form where the user puts in their email address and I send them a randomly generated password. The problem I am having is that for some reason it sends two emails. One from the email address that I specify as a header in my script, and another one that appears to be from my mail server. Why? I just want the one that I set up in my script.
/*
if ($submit) {
mail($address,$subject,$body);
$to = $address;
$subject = "Your Contest Information";
$msg = "Here is your password for downloading AB3 and AudioBasix";
$headers = "From: eli.schuepbach@audiobase.com";
mail("$to", "$subject", "$msg", "$headers");
}
*/
<!-- here is the form
<form method="post" name="mailer" astion="<? echo $PHP_SELF?>">
<input type="text" name="address" value="you@you.com"><br>
<input type="submit" name="submit" value="Send Me An Email">
</form>
-->