<?xml version="1.0"?><phpdoc><class name="Mail_smtp" extends="Mail" undoc="false" access="private"><file>c:/www/apache/doc2//pear/Mail/smtp.php</file><doc><author email="ssb@fast.no">Stig Bakken</author><inherited src="Array"/><overriden src="Array"/><description>Net_SMTP:: class.</description><shortdescription>SMTP implementation of the PEAR Mail:: interface. Requires the PEAR</shortdescription><since>PHP 4.0.2</since></doc><function name="Mail_smtp" undoc="false" access="public"><doc><parameter name="$params" type="array">containing any parameters different from the&#x0a;defaults.</parameter><return type="void"/><description>Instantiates a new Mail_smtp:: object based on the parameterspassed in. It looks for the following parameters:host        The server to connect to. Defaults to localhost.port        The port to connect to. Defaults to 25.auth        Whether or not to use SMTP auth. Defaults to false.username    The username to use for SMTP auth. No default.password    The password to use for SMTP auth. No default.If a parameter is present in the $params array, it replaces thedefault.</description><shortdescription>Constructor.</shortdescription></doc></function><function name="send" undoc="true" access="public"><doc><parameter name="$recipients" type="mixed">a comma-seperated list of recipients&#x0a;(RFC822 compliant), or an array of recipients,&#x0a;each RFC822 valid. This may contain recipients not&#x0a;specified in the headers, for Bcc:, resending&#x0a;messages, etc.</parameter><parameter name="$headers" type="array">array of headers to send with the mail, in an&#x0a;associative array, where the array key is the&#x0a;header name (ie, &amp;apos;Subject&amp;apos;), and the array value&#x0a;is the header value (ie, &amp;apos;test&amp;apos;). The header&#x0a;produced from those values would be &amp;apos;Subject:&#x0a;test&amp;apos;.</parameter><parameter name="$body" type="string">full text of the message body, including any&#x0a;Mime parts, etc.</parameter><return name="" type="mixed">Returns true on success, or a PEAR_Error&#x0a;containing a descriptive error message on&#x0a;failure.</return><overriden src="Mail"/><description/><shortdescription>Implements Mail::send() function using SMTP.</shortdescription></doc></function><variable name="$host" access="private" type="string">&amp;apos;localhost&amp;apos;<doc><description/><shortdescription>The SMTP host to connect to.</shortdescription></doc></variable><variable name="$port" access="private" type="integer">25<doc><description/><shortdescription>The port the SMTP server is on.</shortdescription></doc></variable><variable name="$auth" access="private" type="boolean">false<doc><description/><shortdescription>Whether or not to attempt to authenticate to the SMTP server.</shortdescription></doc></variable><variable name="$username" access="private" type="string">&amp;apos;&amp;apos;<doc><description/><shortdescription>The username to use if the SMTP server requires authentication.</shortdescription></doc></variable><variable name="$password" access="private" type="string">&amp;apos;&amp;apos;<doc><description/><shortdescription>The password to use if the SMTP server requires authentication.</shortdescription></doc></variable><inherited src="Mail" type="functions"><element>factory</element><element>prepareheaders</element><element>parserecipients</element></inherited><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>Mail</parent><parent>PEAR</parent></path><baseclass>PEAR</baseclass></class></phpdoc>
