You need to change the first statement to $from = "From: [EMAIL PROTECTED]";
-- JR > -----Original Message----- > From: Frank Wang [mailto:[EMAIL PROTECTED]] > Sent: Friday, November 15, 2002 10:15 AM > To: [EMAIL PROTECTED] > Subject: [PHP] mail and from line overriding > > > Hi, > > I have something like following: > > $from = "[EMAIL PROTECTED]"; > $email = "[EMAIL PROTECTED]"; > $msg = "abcde"; > > mail($email, $subj, $msg, $from); > > the message sent always has the 'from' line taken from php.ini, not $from, > is there a way to override this ? Thanks. > > Frank > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php