Re: help with mail()

From: Date: Thu, 28 Dec 2000 05:06:23 +0000
Subject: Re: help with mail()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-32050@lists.php.net to get a copy of this message
I'm a bit suspicious of the "From" mail header since it has no address specified. Try removing that header or giving it a valid sender email address and see if it's still not working. If it's not, please include the exact text of the error message, also. Toby Butzon [ criticism spurs improvement ] ----- Original Message ----- From: "Jesus Nava" <jnava@atg1.com> To: <php-general@lists.php.net> Sent: Wednesday, December 27, 2000 9:51 PM Subject: [PHP] help with mail() Hi, I just can not find my error on this script. I hope somebody out there could help me. I get an error on the mail() function. What is wrong with it. <? $msg = "E-MAIL SENT FROM WWW SITE\n"; $msg .= "Sender's Name:\t$sender_name\n"; $msg .= "Sender's E-Mail:\t$sender_email\n"; $msg .= "Message:\t$message\n\n"; $to = "jnava@atg1.com"; $subject = "Web Site Feedback"; $mailheaders = "From: My Web Site <> \n"; $mailheaders .= "Reply-To: $sender_email\n\n"; mail($to, $subject, $msg, $mailheaders); ?> <HTML> <HEAD> <TITLE>Simple Feedback Form</TITLE> </HEAD> <BODY> <H1>The following e-mail has been sent:</H1> <P><strong>Your Name:</strong><br> <? echo "$sender_name"; ?> <P><strong>Your E-Mail Address:</strong><br> <? echo "$sender_email"; ?> <P><strong>Message:</strong><br> <? echo "$message"; ?> </BODY> </HTML>

« previous php.general (#32050) next »