Re: Re: #49758 [Bgs]: Cannot send e-mails using SMTP in Mail PEAR package.

From: Date: Mon, 05 Oct 2009 13:16:22 +0000
Subject: Re: Re: #49758 [Bgs]: Cannot send e-mails using SMTP in Mail PEAR package.
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-45661@lists.php.net to get a copy of this message
hi, pls reply using the web interace only. Cheers, On Mon, Oct 5, 2009 at 2:59 PM, Al <news@ridersite.org> wrote: > > > navossoc at gmail dot com wrote: >> >>  ID:               49758 >>  User updated by:  navossoc at gmail dot com >>  Reported By:      navossoc at gmail dot com >>  Status:           Bogus >>  Bug Type:         Unknown/Other Function >>  Operating System: Windows Server 2003 R2 >>  PHP Version:      5.2.11 >>  New Comment: >> >> A typing error into the example. >> Anyway, why downgrading without code changes works fine again? >> >> The release log of php has a STMP bug fixed, maybe any relevance? >> >> []'s >> >> >> Previous Comments: >> ------------------------------------------------------------------------ >> >> [2009-10-04 19:40:24] Sjoerd@php.net >> >> 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. >> >> ------------------------------------------------------------------------ >> >> [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" => "tesing@testing.com <testing>", >>        "Subject" => "some subject", >>        "To" => "someone@something.com", >>        "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. >> >> >> ------------------------------------------------------------------------ >> >> > > All php versions work for me. > > Try this: > > In your Mail::factory() include the parm 'debug' set to true; > > Then do a "if(PEAR::isError($result)){ > > print $result->getMessage()); > > } > > You'll get a full detailed report. > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Pierre http://blog.thepimp.net | http://www.libgd.org

« previous php.internals (#45661) next »