Re: help with mail()

From: Date: Thu, 28 Dec 2000 03:14:43 +0000
Subject: Re: help with mail()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-32033@lists.php.net to get a copy of this message
You have two mailheaders! ""Jesus Nava"" <jnava@atg1.com> wrote in message news:001b01c07079$1e194460$650a0a0a@atg1.com... 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 (#32033) next »