ID: 49758 Updated by: [email protected] Reported By: navossoc at gmail dot com -Status: Open +Status: Bogus Bug Type: Unknown/Other Function Operating System: Windows Server 2003 R2 PHP Version: 5.2.11 New Comment:
Thank you for your bug report. If there is a bug here, it is in a PEAR package and should be filed there: http://pear.php.net/package/Mail Also, note that the $to variable in your example is not set. Previous Comments: ------------------------------------------------------------------------ [2009-10-03 00:16:10] navossoc at gmail dot com Description: ------------ Cannot send e-mails using SMTP in PEAR Mail package. Reproduce code: --------------- PEAR Mail Package: http://pear.php.net/package/Mail <?php require_once("Mail.php"); // PEAR Mail $smtp = Mail::factory ( "smtp", array ( "localhost" => "localhost", "host" => "localhost", "auth" => false ) ); $headers = array ( "From" => "[email protected] <testing>", "Subject" => "some subject", "To" => "[email protected]", "Content-Type" => "text/html; charset=iso-8859-1", "MIME-Version" => "1.0" ); $smtp->send($to, $headers, "message"); ?> Expected result: ---------------- Send the e-mail using the class without problems. IIS 6 with PHP 5.2.11 no additional extensions. STMP is provided by MailEnable 3.61 Actual result: -------------- Don't show any error on php, between the e-mail is not send. I can send it using mail() function without problems. Downgrading to 5.2.10, works fine again, no code changes. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=49758&edit=1
