RE: [PHP-DB] Mail() Not working
| From: | Rick Emery | Date: | Wed, 12 Dec 2001 19:30:12 +0000 |
| Subject: | RE: [PHP-DB] Mail() Not working | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-14973@lists.php.net to get a copy of this message | ||
I stand corrected. thanks
-----Original Message-----
From: Chris Hobbs [mailto:chobbs@silvervalley.k12.ca.us]
Sent: Wednesday, December 12, 2001 12:03 PM
To: PHP-DB List
Subject: Re: [PHP-DB] Mail() Not working
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:
>>> I have been unable to get the mail() function to work.
>>>
>>> my php.ini file has the following line in it:
>>> SMTP = mail.attbi.com
--
_______ ___ _ ____ _____
Chris Hobbs / ____\ \ / / | | |/ ___\| __ \
Head Geek | (___ \ \ / /| | | | (___ | | | |
WebMaster \___ \ \ \/ / | | | |\___ \| | | |
PostMaster ____) | \ / | |__| |____) | |__| |
\____/ \/ \____/ \____/|_____/
http://www.silvervalley.k12.ca.us
chobbs@silvervalley.k12.ca.us
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
For additional commands, e-mail: php-db-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net