<?xml version="1.0"?><phpdoc><class name="Net_SMTP" extends="PEAR" undoc="false" access="private"><file>c:/www/apache/doc2//pear/Net/SMTP.php</file><doc><author email="ssb@fast.no">Stig Bakken</author><inherited src="Array"/><description>Net_Socket:: class.</description><shortdescription>Provides an implementation of the SMTP protocol using PEAR&amp;apos;s</shortdescription><since>PHP 4.0.2</since></doc><function name="Net_SMTP" undoc="false" access="public"><doc><parameter name="$host" default="null," type="string">server to connect to.</parameter><parameter name="$port" default="null," type="string">port to connect to.</parameter><parameter name="$localhost" default="null" type="string">value to give when sending EHLO or HELO.</parameter><return type="void"/><description>Instantiates a new Net_SMTP object, overriding any defaultswith parameters that are passed in.</description><shortdescription>Constructor</shortdescription></doc></function><function name="connect" undoc="false" access="public"><doc><return name="" type="mixed">Returns a PEAR_Error with an error message on any&#x0a;kind of failure, or true on success.</return><description/><shortdescription>Attempt to connect to the SMTP server.</shortdescription></doc></function><function name="disconnect" undoc="false" access="public"><doc><return name="" type="mixed">Returns a PEAR_Error with an error message on any&#x0a;kind of failure, or true on success.</return><description/><shortdescription>Attempt to disconnect from the SMTP server.</shortdescription></doc></function><function name="auth" undoc="false" access="public"><doc><parameter name="$uid" type="string">userid to authenticate as.</parameter><parameter name="$pwd" type="string">password to authenticate with.</parameter><return name="" type="mixed">Returns a PEAR_Error with an error message on any&#x0a;kind of failure, or true on success.</return><description/><shortdescription>Attempt to do SMTP authentication.</shortdescription></doc></function><function name="helo" undoc="false" access="public"><doc><parameter name="$domain" type="string">domain name to say we are.</parameter><return name="" type="mixed">Returns a PEAR_Error with an error message on any&#x0a;kind of failure, or true on success.</return><description/><shortdescription>Send the HELO command.</shortdescription></doc></function><function name="mailFrom" undoc="false" access="public"><doc><parameter name="$reverse_path" type="string">sender (reverse path) to set.</parameter><return name="" type="mixed">Returns a PEAR_Error with an error message on any&#x0a;kind of failure, or true on success.</return><description/><shortdescription>Send the MAIL FROM: command.</shortdescription></doc></function><function name="rcptTo" undoc="false" access="public"><doc><parameter name="$forward_path" type="string">recipient (forward path) to add.</parameter><return name="" type="mixed">Returns a PEAR_Error with an error message on any&#x0a;kind of failure, or true on success.</return><description/><shortdescription>Send the RCPT TO: command.</shortdescription></doc></function><function name="data" undoc="false" access="public"><doc><parameter name="$data" type="string">message body to send.</parameter><return name="" type="mixed">Returns a PEAR_Error with an error message on any&#x0a;kind of failure, or true on success.</return><description/><shortdescription>Send the DATA command.</shortdescription></doc></function><function name="send_from" undoc="false" access="public"><doc><parameter name="$reverse_path" type="string">reverse path to send.</parameter><return name="" type="mixed">Returns a PEAR_Error with an error message on any&#x0a;kind of failure, or true on success.</return><description/><shortdescription>Send the SEND FROM: command.</shortdescription></doc></function><function name="soml_from" undoc="false" access="public"><doc><parameter name="$reverse_path" type="string">reverse path to send.</parameter><return name="" type="mixed">Returns a PEAR_Error with an error message on any&#x0a;kind of failure, or true on success.</return><description/><shortdescription>Send the SOML FROM: command.</shortdescription></doc></function><function name="saml_from" undoc="false" access="public"><doc><parameter name="$reverse_path" type="string">reverse path to send.</parameter><return name="" type="mixed">Returns a PEAR_Error with an error message on any&#x0a;kind of failure, or true on success.</return><description/><shortdescription>Send the SAML FROM: command.</shortdescription></doc></function><function name="rset" undoc="false" access="public"><doc><return name="" type="mixed">Returns a PEAR_Error with an error message on any&#x0a;kind of failure, or true on success.</return><description/><shortdescription>Send the RSET command.</shortdescription></doc></function><function name="vrfy" undoc="false" access="public"><doc><parameter name="$string" type="string">string to verify</parameter><return name="" type="mixed">Returns a PEAR_Error with an error message on any&#x0a;kind of failure, or true on success.</return><description/><shortdescription>Send the VRFY command.</shortdescription></doc></function><function name="noop" undoc="false" access="public"><doc><return name="" type="mixed">Returns a PEAR_Error with an error message on any&#x0a;kind of failure, or true on success.</return><description/><shortdescription>Send the NOOP command.</shortdescription></doc></function><function name="identifySender" undoc="false" access="private"><doc><return name="" type="mixed">Returns a PEAR_Error with an error message on any&#x0a;kind of failure, or true on success.</return><description>extensions available, and failing that just send HELO.</description><shortdescription>Attempt to send the EHLO command and obtain a list of ESMTP</shortdescription></doc></function><function name="validateResponse" undoc="false" access="private"><doc><parameter name="$code" type="int">response code we are expecting.</parameter><return name="" type="boolean">True if we get what we expect, false otherwise.</return><description>matches what we are expecting.</description><shortdescription>Read a response from the server and see if the response code</shortdescription></doc></function><function name="validateAndParseResponse" undoc="false" access="private"><doc><parameter name="$code" type="int">response code we are expecting.</parameter><parameter name="&amp;$arguments" type="array">array to dump the rest of the response into.</parameter><return name="" type="boolean">True if we get what we expect, false otherwise.</return><description>matches what we are expecting. Also save the rest of theresponse in the array passed by reference as the secondargument.</description><shortdescription>Read a response from the server and see if the response code</shortdescription></doc></function><variable name="$host" access="private" type="string">&amp;apos;localhost&amp;apos;<doc><description/><shortdescription>The server to connect to.</shortdescription></doc></variable><variable name="$port" access="private" type="integer">25<doc><description/><shortdescription>The port to connect to.</shortdescription></doc></variable><variable name="$localhost" access="private" type="string">&amp;apos;localhost&amp;apos;<doc><description/><shortdescription>The value to give when sending EHLO or HELO.</shortdescription></doc></variable><variable name="$socket" access="private" type="unknown"><doc><description/><shortdescription>The socket resource being used to connect to the SMTP server.</shortdescription></doc></variable><variable name="$code" access="private" type="int"><doc><description/><shortdescription>The most recent reply code</shortdescription></doc></variable><variable name="$esmtp" access="private" type="array"><doc><description/><shortdescription>Stores detected features of the SMTP server.</shortdescription></doc></variable><inherited src="PEAR" type="functions"><element>pear</element><element>_pear</element><element>iserror</element><element>_pear_call_destructors</element></inherited><inherited src="PEAR" type="variables"><element>$_debug</element></inherited><inherited src="PEAR" type="consts"><element>pear_error_return</element><element>pear_error_print</element><element>pear_error_trigger</element><element>pear_error_die</element><element>pear_error_callback</element><element>php_bindir</element><element>pear_install_dir</element><element>pear_extension_dir</element></inherited><path><parent>PEAR</parent></path><baseclass>PEAR</baseclass></class></phpdoc>