Mail Function
| From: | Will | Date: | Mon, 08 Mar 2004 06:09:34 +0000 |
| Subject: | Mail Function | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-179723@lists.php.net to get a copy of this message | ||
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 = me@mydomain.com Please help :) ~WILL~