-- Darby Felton <[EMAIL PROTECTED]> wrote
(on Wednesday, 18 July 2007, 10:56 AM -0400):
> I ran the following on PHP 5.1.4 (wampserver with OpenSSL 0.9.8a 11 Oct
> 2005):
> 
> error_reporting(E_ALL | E_STRICT);
> $config = array(
>     'auth'      => 'login',
>     'username'  => '[EMAIL PROTECTED]',
>     'password'  => 'secret',
>     'ssl'       => 'tls',
>     'port'      => 587
> );
> require_once 'Zend/Mail/Transport/Smtp.php';
> $tr = new Zend_Mail_Transport_Smtp('smtp.googlemail.com', $config);
> require_once 'Zend/Mail.php';
> Zend_Mail::setDefaultTransport($tr);
> $mail = new Zend_Mail();
> $mail->setFrom('[EMAIL PROTECTED]');
> $mail->addTo('[EMAIL PROTECTED]', 'Info');
> $mail->setSubject('test');
> $mail->setBodyText('testing... 1... 2... 3...');
> $mail->send();

I get the following with 5.2.1 using OpenSSL 0.9.8c:

    * With port 587 and ssl == 'ssl': unable to negotiate auth
    * With port 587 and ssl == 'tls': fatal error, mail sent, but
      headers have extra lines, so subject missing
    * With port 465 and ssl == 'ssl': same as 587 + tls
    * With port 465 and ssl == 'tls': infinite loop; script never ends

> Matthew Weier O'Phinney wrote:
> > -- mike55 <[EMAIL PROTECTED]> wrote
> > (on Wednesday, 18 July 2007, 06:14 AM -0700):
> >> Simon Mundy wrote:
> >>> You said it was the XAMP install? Anything else I'd need to know to  
> >>> build a similar setup to test this?
> >> it's a XAMPP  xampp-win32-1.5.4a-installer.exe
> >> the files:
> >> http://sourceforge.net/project/shownotes.php?release_id=452871&group_id=61776
> >>
> >> here's is phpinfo:
> >> http://rapidshare.com/files/43607735/phpinfo.htm.html
> > 
> > That shows an OpenSSL of 0.9.8a -- I'm on 0.9.8c, released a year later.
> > I wonder if that's the difference? Can anyone test using 0.9.8a vs. c or
> > later?

-- 
Matthew Weier O'Phinney
PHP Developer            | [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/

Reply via email to