Sure hope someone can help.
I keep receiveing this error when trying to send mail from php on apache server.
(Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing in C:\Apache\Apache2\htdocs\sendmail.php on line 10
Warning: Cannot modify header information - headers already sent by (output started at C:\Apache\Apache2\htdocs\sendmail.php:3) in C:\Apache\Apache2\htdocs\sendmail.php on line 11)
Ok first of all I have set the php.ini
( [mail function]
This is the code I am uesing to send mail
$email = $_REQUEST[ 'email'] ;
$message = $_REQUEST['message'] ;
mail( "firstname.lastname@example.org", "Feedback Form Results",
$message, "From: $email" );
header( "Location: mail.comcast.net");
This is the HTML code I am useing
<form method="post" action="sendmail.php">
Email: <input name="email" type="text" size="20" /><br />
<textarea name="message" rows="15" cols="40">
<input type="submit" />
Any help on this on going problem!
Thanks in advance