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  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 2 + 33 = ?

 
 [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.