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();

The output:

Warning: fgets() [function.fgets]: SSL operation failed with code 1.
OpenSSL Error messages: error:1408F10B:SSL
routines:SSL3_GET_RECORD:wrong version number in
library\Zend\Mail\Protocol\Abstract.php on line 303

Fatal error: Exception thrown without a stack frame in Unknown on line 0

I'll try on my Ubuntu box momentarily and post the results I get.

Best regards,
Darby

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?
> 

Reply via email to