#43348 [Opn->Fbk]: Mail function returns true but no email sent

From: Date: Tue, 20 Nov 2007 16:46:56 +0000
Subject: #43348 [Opn->Fbk]: Mail function returns true but no email sent
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-119894@lists.php.net to get a copy of this message
 ID:               43348
 Updated by:       jani@php.net
 Reported By:      RQuadling at GMail dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Mail related
 Operating System: Windows XP SP2
 PHP Version:      5.3CVS-2007-11-20 (snap)
 New Comment:

It's pretty interesting since nothing has changed in this code between
those versions. And using the older one with exactly same line works?


Previous Comments:
------------------------------------------------------------------------

[2007-11-20 14:58:47] RQuadling at GMail dot com

Description:
------------
Same script working on 

PHP 4.4.7-dev (cgi-fcgi) (built: Mar 25 2007 21:02:43)
PHP 5.2.2RC2-dev (cli) (built: Apr 18 2007 08:03:01)

but not on 

PHP 5.3.0-dev (cli) (built: Nov 20 2007 08:19:12)

Using Wireshark to see SMTP activity.

No errors, warnings or notices produced.

Script doesn't crash.

True is returned.

Running via the command line to remove all extensions and relying on
default configuration.

Obviously, you will need to change the SMTP server and email addresses
to see this in operation.


Reproduce code:
---------------
php -n -r "ini_set('SMTP', 'gmail-smtp-in.l.google.com');
var_dump(mail('RQuadling@GeeWhizzMail.com', 'Subject', 'Message',
'From:RQuadling@GeeWhizzMail.com'));"


Expected result:
----------------
True AND an email to be received.

Actual result:
--------------
True but no SMTP activity when monitored using WireShark.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=43348&edit=1


Thread (17 messages)

« previous php.bugs (#119894) next »