cvs: pear /Net_SMTP SMTP.php

From: Date: Thu, 03 Mar 2005 22:19:45 +0000
Subject: cvs: pear /Net_SMTP SMTP.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-30037@lists.php.net to get a copy of this message
chagenbu Thu Mar 3 17:19:45 2005 EDT Modified files: /pear/Net_SMTP SMTP.php Log: document ssl connections #2849 http://cvs.php.net/diff.php/pear/Net_SMTP/SMTP.php?r1=1.51&r2=1.52&ty=u Index: pear/Net_SMTP/SMTP.php diff -u pear/Net_SMTP/SMTP.php:1.51 pear/Net_SMTP/SMTP.php:1.52 --- pear/Net_SMTP/SMTP.php:1.51 Mon Dec 27 12:26:04 2004 +++ pear/Net_SMTP/SMTP.php Thu Mar 3 17:19:45 2005 @@ -18,7 +18,7 @@ // | Damian Alejandro Fernandez Sosa <damlists@cnba.uba.ar> | // +----------------------------------------------------------------------+ // -// $Id: SMTP.php,v 1.51 2004/12/27 17:26:04 chagenbu Exp $ +// $Id: SMTP.php,v 1.52 2005/03/03 22:19:45 chagenbu Exp $ require_once 'PEAR.php'; require_once 'Net/Socket.php'; @@ -104,9 +104,16 @@ * Instantiates a new Net_SMTP object, overriding any defaults * with parameters that are passed in. * - * @param string The server to connect to. - * @param int The port to connect to. - * @param string The value to give when sending EHLO or HELO. + * If you have SSL support in PHP, you can connect to a server + * over SSL using an 'ssl://' prefix: + * + * // 465 is a common smtps port. + * $smtp = new Net_SMTP('ssl://mail.host.com', 465); + * $smtp->connect(); + * + * @param string $host The server to connect to. + * @param integer $port The port to connect to. + * @param string $localhost The value to give when sending EHLO or HELO. * * @access public * @since 1.0

« previous php.pear.cvs (#30037) next »