RE: [PHP-WIN] Re: mail function not working

From: Date: Mon, 08 Nov 2004 18:50:50 +0000
Subject: RE: [PHP-WIN] Re: mail function not working
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-24938@lists.php.net to get a copy of this message
localhost ( loopback ): 12.0.0.1 Typo fix :) -Mike On Mon, 8 Nov 2004, Sean S. Karshis wrote:
Date: Mon, 8 Nov 2004 08:36:23 -0500 From: Sean S. Karshis <Sean@originalimpressions.com> To: William Lee <wslee00@kgpc-yg.org> Cc: php-windows@lists.php.net Subject: RE: [PHP-WIN] Re: mail function not working 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 -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.windows (#24938) next »