note 113239 added to transports.inet
| From: | christian at lantian dot eu | Date: | Mon, 16 Sep 2013 20:17:53 +0000 |
| Subject: | note 113239 added to transports.inet | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-196273@lists.php.net to get a copy of this message | ||
@pablo dot livardo : I think that the problem you found is caused by the difference between the
client/server encryption methods used.
You tried to access the port 587 using TLS encryption, but the server uses the SSLv3 encryption on
this port.
You can communicate with the Google server on port 465 because on this port the communication is
encrypted using TLS and your client is configured to recognize the TLS.
So, if you want to connect on the Google server over the port 587, you simply must write:
<?php
$fp = fsockopen("ssl://mail.example.com", 587, $errno, $errstr);
?>
instead of:
<?php
$fp = fsockopen("tls://mail.example.com", 587, $errno, $errstr);
?>
:)
----
Server IP: 69.147.83.199
Probable Submitter: 5.12.173.126
----
Manual Page -- http://php.net/manual/en/transports.inet.php
Edit -- https://master.php.net/note/edit/113239
Del: integrated -- https://master.php.net/note/delete/113239/integrated
Del: useless -- https://master.php.net/note/delete/113239/useless
Del: bad code -- https://master.php.net/note/delete/113239/bad+code
Del: spam -- https://master.php.net/note/delete/113239/spam
Del: non-english -- https://master.php.net/note/delete/113239/non-english
Del: in docs -- https://master.php.net/note/delete/113239/in+docs
Del: other reasons-- https://master.php.net/note/delete/113239
Reject -- https://master.php.net/note/reject/113239
Search -- https://master.php.net/manage/user-notes.php