Re: mail function not working
| From: | Manuel Lemos | Date: | Mon, 08 Nov 2004 03:30:29 +0000 |
| Subject: | Re: mail function not working | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-24931@lists.php.net to get a copy of this message | ||
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