~WILL~
Will wrote:
Hello All, I have a question. I installed PHP on a windows XP machine. When I try to send a form it says: "Warning: mail(): sendmail_from not set in php.ini or custom "From: header.
My header are as follows: <? require ("admin/inc/setup.php");
$subject = "FeedBack From Site";
$msg = "Senders Name: $_POST[name]\n"; $msg .= "Senders Email: $_POST[email]\n"; $msg .= "Message: \r$_POST[message]\n"; $mailheader .= "From: $_POST[email]\n"; $mailheader .= "A message has been sent from Domain";
mail($recipient, $subject, $msg, $mailheader);
require ("tmpl/send_form.htm"); ?>
The recipient is in the setup.php file, just to let you know.
My sendmail_from is as follows: sendmail_from = [EMAIL PROTECTED]
Please help :)
~WILL~
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php