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

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 : 41 - 25 = ?

 
 [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] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2005-03-03 22:19 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!