RE: [PHP-WIN] Re: mail function not working
| From: | Sean S. Karshis | Date: | Mon, 08 Nov 2004 13:36:23 +0000 |
| Subject: | RE: [PHP-WIN] Re: mail function not working | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-24935@lists.php.net to get a copy of this message | ||
Also make sure that relaying is open on localhost (127.1.1.1).
-----Original Message-----
From: Manuel Lemos [mailto:mlemos@acm.org]
Sent: Sunday, November 07, 2004 10:30 PM
To: William Lee
Cc: php-windows@lists.php.net
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("a_real_email_address@gmail.com", "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