Re: Mail function sends anonymous as sender name?

From: Date: Tue, 26 Dec 2000 18:06:29 +0000
Subject: Re: Mail function sends anonymous as sender name?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-31859@lists.php.net to get a copy of this message
If you want to include a name in the From email address, you need to enclose the email address in <>. Try this: $from = "From : " . $name ." <" . $email .">\nReply-To: " . $email; and this would work just as well. $from = "From : $name <$email>\nReply-To: $email"; Matthew At 07:08 PM 12/26/2000 +0530, you wrote:
Mail function sends anonymous as sender name although defined in 'from:'. Variables show proper values when I display on screen. Even the 'Reply to:' comes proper but from doesn't. $from = "From : " . $name ." " . $email ."\nReply-To:" . $email; mail($to,$subject,,$message,$from); Reply asap. Ripal


« previous php.general (#31859) next »