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

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)    

 [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 = ""; $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. 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. Thanks for supporting PHP!


 [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 In case this was a 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.