Re: Mail Function
| From: | Will | Date: | Mon, 08 Mar 2004 14:05:22 +0000 |
| Subject: | Re: Mail Function | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-179745@lists.php.net to get a copy of this message | ||
Please help me with this. Can someone give me an example of their php.ini on the settings of the mail function.
~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 = me@mydomain.com Please help :) ~WILL~