Hi all:
I've been struggling with php's mail() function giving me 'Nobody' as the email sender. I have it working on a simple script of mine, but on another, a loop exists that 'deposits' the results of dynamically displayed checkboxes into the $bullet_body var of my mail() function:
$bullet_body = "Emailed result.";
while(list($key) = each($signup)) {
//Start off SQL query
$query = mysql_query("INSERT INTO $table_ifchk(activity,username,email,signedup4,theDate) VALUES ('$id','$username','$ipemail','$key','$completeDate')");
$bullet_body .= "* ";
$bullet_body .= $key;
$bullet_body .= "\n\n";
}
$mail_to = "me@me.com";
$subject = "Sign-up confirmation\n";
$body = $bullet_body;
$from = "someone@somebody.com";
mail("$mail_to","$subject","$body","From: $from");
I have tried every conceivable arrangement, but nothing works! - "Never say die" though, so can anyone help me out here?
Many thanks:
Russ