variations on this are in the archive (and I've read about 50 posts) but this one's got me.
I'm trying to send an email out to one person, whose name has been passed in a variable. If I use the example from the PHP manual:
mail($recipient, $subject, $message, $headers);
it bombs on $recipient. If I type in the email address manually:
mail("dmcguire@exingram.dyndns.org",$subject, $message, $headers);
it works. Here's the code:
// start
$recipient="dmcguire@exingram.dynds.org";
$subject="Registration Confirmation Message";
$message="<font face=\"Arial,Helvetica,sans-serif\">
<h3>Message</h3>
</font>";
$headers.="From: registration@exingram.dyndns.org\r\n";
$headers.="Reply-To: registration@exingram.dyndns.org\r\n";
$headers.="Content-Type: text/html\r\n";
mail($recipient, $subject, $message, $headers);
// end
Again, it's odd because it does send mail if $recipient is actually typed out. I'm stumped.
DAve