Req #2849 [NEW]: Net_SMTP works with SSL, but the docs hide this useful fact.

From: Date: Mon, 29 Nov 2004 08:01:14 +0000
Subject: Req #2849 [NEW]: Net_SMTP works with SSL, but the docs hide this useful fact.
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-5239@lists.php.net to get a copy of this message
From: drachma60 at ml1 dot net Operating system: Irrelevant PHP version: Irrelevant Package: Documentation Bug Type: Feature/Change Request Bug description: Net_SMTP works with SSL, but the docs hide this useful fact. Description: ------------ The following code will open up an SSL connection to a mail server (assuming, of course, PHP has SSL support compiled in). $host = "mail.host.com"; $host = "ssl://$host"; $port = 465; // 465 is a common smtps port $smtp = new Net_SMTP ("$host", $port); $smtp->connect (); Some SMTP authentication methods send the password as cleartext. It is therefore a good idea to encrypt the connection to prevent password sniffing. However, the Pear documentation for Net_SMTP (link below) makes no mention of this non-obvious method of encrypting SMTP connections. http://pear.php.net/manual/en/package.networking.net-smtp.net-smtp.net-smtp.php Additionally, adding a link to the below page would be useful, as it contains further information about fsockopen and possible formats of the $host string in various version of PHP. http://www.php.net/manual/en/transports.php Thanks for supporting PHP! -- Edit bug report at http://pear.php.net/bugs/bug.php?id=2849&edit=1 --

« previous php.pear.doc (#5239) next »