Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.12.1

Request #2849 Net_SMTP works with SSL, but the docs hide this useful fact.
Submitted: 2004-11-29 08:01 UTC
From: drachma60 at ml1 dot net Assigned:
Status: Closed Package: Net_SMTP
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: (Not assigned)    
Subscription  


 [2004-11-29 08:01 UTC] drachma60 at ml1 dot net
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!

Comments

 [2005-03-02 21:15 UTC] mj
I'm categorizing this as a bug in Net_SMTP because the maintainer (Jon Parise) has written extensive documentation at his website, and thus he should incorporate your notice.
 [2005-03-03 22:19 UTC] chagenbu
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better.