Also make sure that relaying is open on localhost (127.1.1.1).
-----Original Message-----
From: Manuel Lemos [mailto:[EMAIL PROTECTED]
Sent: Sunday, November 07, 2004 10:30 PM
To: William Lee
Cc: [EMAIL PROTECTED]
Subject: [PHP-WIN] Re: mail function not working
Hello,
On 11/07/2004 11:48 PM, William Lee wrote:
> My system:
> Windows XP
> Apache
> SMTP server: MailEnable
> PHP 5.0.2
>
> Whenever I try to use the mail function, it returns me a value of
"false".
>
> My php.ini settings are:
> [mail function]
> ; For Win32 only.
> SMTP = localhost
> smtp_port = 25
>
> Here's the function I'm using:
> <?php
> $r = mail("[EMAIL PROTECTED]", "my subject", "line1")
;
> var_dump($r);
> ?>
>
> This always returns: bool(false)
>
> What else do I need to setup in order for this to work???
>
> I can send a regular email through using outlook express. any ideas?
Does Outlook express use a SMTP server on localhost? If not, you need to
adjust php.ini to match the SMTP server address used by Outlook express.
--
Regards,
Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php