Re: Mail() Not working
| From: | Chris Hobbs | Date: | Wed, 12 Dec 2001 18:02:45 +0000 |
| Subject: | Re: Mail() Not working | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-14972@lists.php.net to get a copy of this message | ||
Ummm, you both might want to take a look at: http://www.php.net/manual/en/function.mail.php
as well as:
http://www.php.net/manual/en/ref.mail.php
Rick, you can't specify the mail program in any of the arguments for the mail() command.
Kevin, I bet your problem is in your php.ini script. Make sure sendmail_path is configured correctly for your server - notice that SMTP only has to be identified for Win32 installations. You must set sendmail_path correctly for this to work on *n[iu]x systems.
And for future reference, since there was no database content in the question, php-general would have been a better place for the question.
Rick Emery wrote:
It should look like: $email = "/bin/sendmail"; $to = "kmaynard@mac.com"; $subj = "A test message"; $body = "This is the body of the message"; $hdr = "Reply-to: me@qwerty.com"; mail ($email, $to, $subj, $body, $hdr);In response to Kevin's question:
-- _______ ___ _ ____ _____ Chris Hobbs / ____\ \ / / | | |/ ___\| __ \ Head Geek | (___ \ \ / /| | | | (___ | | | | WebMaster \___ \ \ \/ / | | | |\___ \| | | | PostMaster ____) | \ / | |__| |____) | |__| | \____/ \/ \____/ \____/|_____/ http://www.silvervalley.k12.ca.us chobbs@silvervalley.k12.ca.usI have been unable to get the mail() function to work. my php.ini file has the following line in it: SMTP = mail.attbi.com