Location: PHPKode > projects > PLiMa > plima-0.5.2/restricted/phpmailer/docs/classes/default/SMTP.html
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN' 'http://www.w3.org/TR/REC-html40/loose.dtd'>
<!--NewPage-->
<HTML>
<HEAD>
	<!-- Generated by PhpDoc date: 'Wed, 22 Jan 2003 18:41:33 -0500' -->
	<TITLE>Docs For Class SMTP</TITLE>
<LINK REL ='stylesheet' TYPE='text/css' HREF='stylesheet.css' TITLE='Style'>
</HEAD>
<BODY BGCOLOR='white'>

<!-- Start of Class Data -->
<H2>
	Class SMTP
</H2>
<pre>
SMTP
</pre>
<H3>
	Classes extended from SMTP:
</H3>

<p>
	<b><i>Located in File: Program_Root/class.smtp.php</i></b><br>
</p>
<hr>
<!-- ========== Info from phpDoc block ========= -->
<b>STMP is rfc 821 compliant and implements all the rfc 821 SMTP
commands except TURN which will always return a not implemented
error.</b>
<pre>
SMTP also provides some utility methods for sending mail
to an SMTP server.
</pre>
<UL>
	
	<LI><b>Package</b> - <CODE>default</CODE></LI>
	
	<LI><b>Author</b> - <CODE>Chris Ryan</CODE></LI>
	
</UL>

<hr>
<!-- =========== VAR SUMMARY =========== -->
<A NAME='var_summary'><!-- --></A>
<TABLE BORDER='1' CELLPADDING='3' CELLSPACING='0' WIDTH='100%'>
	<TR BGCOLOR='#CCCCFF' CLASS='TableHeadingColor'>
		<TD>
			<FONT SIZE='+2'><B>Class Variable Summary</B></FONT>
		</TD>
	</TR>

	
	<!-- =========== Summary =========== -->
	<TR BGCOLOR='white' CLASS='TableRowColor'>
		<TD>
			<CODE><B><A HREF='SMTP.html#$CRLF'>$CRLF</A></B></CODE>
			<BR>
			<blockquote>  </blockquote>
			<blockquote> Default Value: <CODE>->\r\n<-</CODE> </blockquote>
		</TD>
	</TR>
	
	<!-- =========== Summary =========== -->
	<TR BGCOLOR='white' CLASS='TableRowColor'>
		<TD>
			<CODE><B><A HREF='SMTP.html#$do_debug'>$do_debug</A></B></CODE>
			<BR>
			<blockquote>  </blockquote>
			<blockquote> Default Value: <CODE>-><-</CODE> </blockquote>
		</TD>
	</TR>
	
	<!-- =========== Summary =========== -->
	<TR BGCOLOR='white' CLASS='TableRowColor'>
		<TD>
			<CODE><B><A HREF='SMTP.html#$error'>$error</A></B></CODE>
			<BR>
			<blockquote>  </blockquote>
			<blockquote> Default Value: <CODE>-><-</CODE> </blockquote>
		</TD>
	</TR>
	
	<!-- =========== Summary =========== -->
	<TR BGCOLOR='white' CLASS='TableRowColor'>
		<TD>
			<CODE><B><A HREF='SMTP.html#$helo_rply'>$helo_rply</A></B></CODE>
			<BR>
			<blockquote>  </blockquote>
			<blockquote> Default Value: <CODE>-><-</CODE> </blockquote>
		</TD>
	</TR>
	
	<!-- =========== Summary =========== -->
	<TR BGCOLOR='white' CLASS='TableRowColor'>
		<TD>
			<CODE><B><A HREF='SMTP.html#$smtp_conn'>$smtp_conn</A></B></CODE>
			<BR>
			<blockquote>  </blockquote>
			<blockquote> Default Value: <CODE>-><-</CODE> </blockquote>
		</TD>
	</TR>
	
	<!-- =========== Summary =========== -->
	<TR BGCOLOR='white' CLASS='TableRowColor'>
		<TD>
			<CODE><B><A HREF='SMTP.html#$SMTP_PORT'>$SMTP_PORT</A></B></CODE>
			<BR>
			<blockquote>  </blockquote>
			<blockquote> Default Value: <CODE>->25<-</CODE> </blockquote>
		</TD>
	</TR>
	
</TABLE>

<hr>
<!-- =========== VAR SUMMARY =========== -->
<A NAME='var_summary'><!-- --></A>
<TABLE BORDER='1' CELLPADDING='3' CELLSPACING='0' WIDTH='100%'>
	<TR BGCOLOR='#CCCCFF' CLASS='TableHeadingColor'>
		<TD>
			<FONT SIZE='+2'><B>Inherited Class Variable Summary</B></FONT>
		</TD>
	</TR>

	
</TABLE>

<hr>
<!-- =========== INHERITED METHOD SUMMARY =========== -->
<A NAME='functions_inherited'><!-- --></A>
<TABLE BORDER='1' CELLPADDING='3' CELLSPACING='0' WIDTH='100%'>
	<TR BGCOLOR='#CCCCFF' CLASS='TableHeadingColor'>
		<TD>
			<FONT SIZE='+2'><B>Inherited Method Summary</B></FONT>
		</TD>
	</TR>

	
</TABLE>

<br>
<!-- should have constructor at some point -->
<!-- =========== Method SUMMARY =========== -->
<A NAME='Method_summary'><!-- --></A>
<TABLE BORDER='1' CELLPADDING='3' CELLSPACING='0' WIDTH='100%'>
	<TR BGCOLOR='#CCCCFF' CLASS='TableHeadingColor'>
		<TD>
			<FONT SIZE='+2'><B>Method Summary</B></FONT>
		</TD>
	</TR>

	
	<!-- =========== Summary =========== -->
	<TR BGCOLOR='white' CLASS='TableRowColor'>
		<TD>
			<CODE><B><A HREF='SMTP.html#constructor SMTP'>void constructor SMTP (  )</A></B></CODE>
			<BR>
			<blockquote> Initialize the class so that the data is in a known state. </blockquote>
		</TD>
	</TR>
	
	<!-- =========== Summary =========== -->
	<TR BGCOLOR='white' CLASS='TableRowColor'>
		<TD>
			<CODE><B><A HREF='SMTP.html#Authenticate'>bool Authenticate ( $username, $password )</A></B></CODE>
			<BR>
			<blockquote> Performs SMTP authentication.  Must be run after running the
Hello() method. </blockquote>
		</TD>
	</TR>
	
	<!-- =========== Summary =========== -->
	<TR BGCOLOR='white' CLASS='TableRowColor'>
		<TD>
			<CODE><B><A HREF='SMTP.html#Close'>void Close (  )</A></B></CODE>
			<BR>
			<blockquote> Closes the socket and cleans up the state of the class. </blockquote>
		</TD>
	</TR>
	
	<!-- =========== Summary =========== -->
	<TR BGCOLOR='white' CLASS='TableRowColor'>
		<TD>
			<CODE><B><A HREF='SMTP.html#Connect'>bool Connect ( $host, [$port = 0], [$tval = 30] )</A></B></CODE>
			<BR>
			<blockquote> Connect to the server specified on the port specified. </blockquote>
		</TD>
	</TR>
	
	<!-- =========== Summary =========== -->
	<TR BGCOLOR='white' CLASS='TableRowColor'>
		<TD>
			<CODE><B><A HREF='SMTP.html#Data'>bool Data ( $msg_data )</A></B></CODE>
			<BR>
			<blockquote> Issues a data command and sends the msg_data to the server </blockquote>
		</TD>
	</TR>
	
	<!-- =========== Summary =========== -->
	<TR BGCOLOR='white' CLASS='TableRowColor'>
		<TD>
			<CODE><B><A HREF='SMTP.html#Expand'>string Expand ( $name )</A></B></CODE>
			<BR>
			<blockquote> Expand takes the name and asks the server to list all the
people who are members of the _list_. </blockquote>
		</TD>
	</TR>
	
	<!-- =========== Summary =========== -->
	<TR BGCOLOR='white' CLASS='TableRowColor'>
		<TD>
			<CODE><B><A HREF='SMTP.html#Hello'>bool Hello ( $host )</A></B></CODE>
			<BR>
			<blockquote> Sends the HELO command to the smtp server. </blockquote>
		</TD>
	</TR>
	
	<!-- =========== Summary =========== -->
	<TR BGCOLOR='white' CLASS='TableRowColor'>
		<TD>
			<CODE><B><A HREF='SMTP.html#Help'>string Help ( $keyword )</A></B></CODE>
			<BR>
			<blockquote> Gets help information on the keyword specified. </blockquote>
		</TD>
	</TR>
	
	<!-- =========== Summary =========== -->
	<TR BGCOLOR='white' CLASS='TableRowColor'>
		<TD>
			<CODE><B><A HREF='SMTP.html#Mail'>bool Mail ( $from )</A></B></CODE>
			<BR>
			<blockquote> Starts a mail transaction from the email address specified in
$from. Returns true if successful or false otherwise. </blockquote>
		</TD>
	</TR>
	
	<!-- =========== Summary =========== -->
	<TR BGCOLOR='white' CLASS='TableRowColor'>
		<TD>
			<CODE><B><A HREF='SMTP.html#Noop'>bool Noop (  )</A></B></CODE>
			<BR>
			<blockquote> Sends the command NOOP to the SMTP server. </blockquote>
		</TD>
	</TR>
	
	<!-- =========== Summary =========== -->
	<TR BGCOLOR='white' CLASS='TableRowColor'>
		<TD>
			<CODE><B><A HREF='SMTP.html#Quit'>bool Quit ( [$close_on_error = true] )</A></B></CODE>
			<BR>
			<blockquote> Sends the quit command to the server and then closes the socket
if there is no error or the $close_on_error argument is true. </blockquote>
		</TD>
	</TR>
	
	<!-- =========== Summary =========== -->
	<TR BGCOLOR='white' CLASS='TableRowColor'>
		<TD>
			<CODE><B><A HREF='SMTP.html#Recipient'>bool Recipient ( $to )</A></B></CODE>
			<BR>
			<blockquote> Sends the command RCPT to the SMTP server with the TO: argument of $to.
Returns true if the recipient was accepted false if it was rejected. </blockquote>
		</TD>
	</TR>
	
	<!-- =========== Summary =========== -->
	<TR BGCOLOR='white' CLASS='TableRowColor'>
		<TD>
			<CODE><B><A HREF='SMTP.html#Reset'>bool Reset (  )</A></B></CODE>
			<BR>
			<blockquote> Sends the RSET command to abort and transaction that is
currently in progress. </blockquote>
		</TD>
	</TR>
	
	<!-- =========== Summary =========== -->
	<TR BGCOLOR='white' CLASS='TableRowColor'>
		<TD>
			<CODE><B><A HREF='SMTP.html#Send'>bool Send ( $from )</A></B></CODE>
			<BR>
			<blockquote> Starts a mail transaction from the email address specified in </blockquote>
		</TD>
	</TR>
	
	<!-- =========== Summary =========== -->
	<TR BGCOLOR='white' CLASS='TableRowColor'>
		<TD>
			<CODE><B><A HREF='SMTP.html#SendAndMail'>bool SendAndMail ( $from )</A></B></CODE>
			<BR>
			<blockquote> Starts a mail transaction from the email address specified in </blockquote>
		</TD>
	</TR>
	
	<!-- =========== Summary =========== -->
	<TR BGCOLOR='white' CLASS='TableRowColor'>
		<TD>
			<CODE><B><A HREF='SMTP.html#SendOrMail'>bool SendOrMail ( $from )</A></B></CODE>
			<BR>
			<blockquote> Starts a mail transaction from the email address specified in </blockquote>
		</TD>
	</TR>
	
	<!-- =========== Summary =========== -->
	<TR BGCOLOR='white' CLASS='TableRowColor'>
		<TD>
			<CODE><B><A HREF='SMTP.html#Turn'>bool Turn (  )</A></B></CODE>
			<BR>
			<blockquote> This is an optional command for SMTP that this class does not
support. </blockquote>
		</TD>
	</TR>
	
	<!-- =========== Summary =========== -->
	<TR BGCOLOR='white' CLASS='TableRowColor'>
		<TD>
			<CODE><B><A HREF='SMTP.html#Verify'>int Verify ( $name )</A></B></CODE>
			<BR>
			<blockquote> Verifies that the name is recognized by the server. </blockquote>
		</TD>
	</TR>
	
</TABLE>

<hbr>
<!-- ============ VARIABLE DETAIL =========== -->

<A NAME='variable_detail'></A>
<TABLE BORDER='1' CELLPADDING='3' CELLSPACING='0' WIDTH='100%'>
	<TR BGCOLOR='#CCCCFF' CLASS='TableHeadingColor'>
		<TD>
			<FONT SIZE='+2'><B>Variable Detail</B></FONT>
		</TD>
	</TR>
</TABLE>


<A NAME='$CRLF'><!-- --></A><H3>$CRLF</H3>
<b>Data type:</b> mixed<br>
<!-- ========== Info from phpDoc block ========= -->
<b></b>
<pre>

</pre>
<UL>
	
</UL>

<HR>

<A NAME='$do_debug'><!-- --></A><H3>$do_debug</H3>
<b>Data type:</b> mixed<br>
<!-- ========== Info from phpDoc block ========= -->
<b></b>
<pre>

</pre>
<UL>
	
</UL>

<HR>

<A NAME='$error'><!-- --></A><H3>$error</H3>
<b>Data type:</b> mixed<br>
<!-- ========== Info from phpDoc block ========= -->
<b></b>
<pre>

</pre>
<UL>
	
</UL>

<HR>

<A NAME='$helo_rply'><!-- --></A><H3>$helo_rply</H3>
<b>Data type:</b> mixed<br>
<!-- ========== Info from phpDoc block ========= -->
<b></b>
<pre>

</pre>
<UL>
	
</UL>

<HR>

<A NAME='$smtp_conn'><!-- --></A><H3>$smtp_conn</H3>
<b>Data type:</b> mixed<br>
<!-- ========== Info from phpDoc block ========= -->
<b></b>
<pre>

</pre>
<UL>
	
</UL>

<HR>

<A NAME='$SMTP_PORT'><!-- --></A><H3>$SMTP_PORT</H3>
<b>Data type:</b> mixed<br>
<!-- ========== Info from phpDoc block ========= -->
<b></b>
<pre>

</pre>
<UL>
	
</UL>

<HR>


<hr>
<!-- ============ FUNCTION DETAIL =========== -->

<A NAME='function_detail'></A>
<TABLE BORDER='1' CELLPADDING='3' CELLSPACING='0' WIDTH='100%'>
	<TR BGCOLOR='#CCCCFF' CLASS='TableHeadingColor'>
		<TD>
			<FONT SIZE='+2'><B>Method Detail</B></FONT>
		</TD>
	</TR>
</TABLE>


<A NAME='constructor SMTP'><!-- --></A><H3>constructor SMTP</H3>
<P><B>void constructor SMTP (  )</B></P>
<P></P>
<!-- ========== Info from phpDoc block ========= -->
<b>Initialize the class so that the data is in a known state.</b>
<pre>

</pre>
<DL>
	<DT>Function Parameters:</DT>
	

	<DT>Function Info:</DT>
	
	<DD><b>Access</b> - <CODE>public</CODE></DD>
	
</DL>

<HR>

<A NAME='Authenticate'><!-- --></A><H3>Authenticate</H3>
<P><B>bool Authenticate ( $username, $password )</B></P>
<P></P>
<!-- ========== Info from phpDoc block ========= -->
<b>Performs SMTP authentication.  Must be run after running the
Hello() method.</b>
<pre>
Returns true if successfully authenticated.
</pre>
<DL>
	<DT>Function Parameters:</DT>
	

	<DT>Function Info:</DT>
	
	<DD><b>Access</b> - <CODE>public</CODE></DD>
	
</DL>

<HR>

<A NAME='Close'><!-- --></A><H3>Close</H3>
<P><B>void Close (  )</B></P>
<P></P>
<!-- ========== Info from phpDoc block ========= -->
<b>Closes the socket and cleans up the state of the class.</b>
<pre>
It is not considered good to use this function without
first trying to use QUIT.
</pre>
<DL>
	<DT>Function Parameters:</DT>
	

	<DT>Function Info:</DT>
	
	<DD><b>Access</b> - <CODE>public</CODE></DD>
	
</DL>

<HR>

<A NAME='Connect'><!-- --></A><H3>Connect</H3>
<P><B>bool Connect ( $host, [$port = 0], [$tval = 30] )</B></P>
<P></P>
<!-- ========== Info from phpDoc block ========= -->
<b>Connect to the server specified on the port specified.</b>
<pre>
If the port is not specified use the default SMTP_PORT.
If tval is specified then a connection will try and be
established with the server for that number of seconds.
If tval is not specified the default is 30 seconds to
try on the connection.

SMTP CODE SUCCESS: 220
SMTP CODE FAILURE: 421
</pre>
<DL>
	<DT>Function Parameters:</DT>
	

	<DT>Function Info:</DT>
	
	<DD><b>Access</b> - <CODE>public</CODE></DD>
	
</DL>

<HR>

<A NAME='Data'><!-- --></A><H3>Data</H3>
<P><B>bool Data ( $msg_data )</B></P>
<P></P>
<!-- ========== Info from phpDoc block ========= -->
<b>Issues a data command and sends the msg_data to the server</b>
<pre>
finializing the mail transaction. $msg_data is the message
that is to be send with the headers. Each header needs to be
on a single line followed by a &lt;CRLF&gt; with the message headers
and the message body being seperated by and additional &lt;CRLF&gt;.

Implements rfc 821: DATA &lt;CRLF&gt;

SMTP CODE INTERMEDIATE: 354
    [data]
    &lt;CRLF&gt;.&lt;CRLF&gt;
    SMTP CODE SUCCESS: 250
    SMTP CODE FAILURE: 552,554,451,452
SMTP CODE FAILURE: 451,554
SMTP CODE ERROR  : 500,501,503,421
</pre>
<DL>
	<DT>Function Parameters:</DT>
	

	<DT>Function Info:</DT>
	
	<DD><b>Access</b> - <CODE>public</CODE></DD>
	
</DL>

<HR>

<A NAME='Expand'><!-- --></A><H3>Expand</H3>
<P><B>string Expand ( $name )</B></P>
<P></P>
<!-- ========== Info from phpDoc block ========= -->
<b>Expand takes the name and asks the server to list all the
people who are members of the _list_.</b>
<pre>
Expand will return
back and array of the result or false if an error occurs.
Each value in the array returned has the format of:
    [ &lt;full-name&gt; &lt;sp&gt; ] &lt;path&gt;
The definition of &lt;path&gt; is defined in rfc 821

Implements rfc 821: EXPN &lt;SP&gt; &lt;string&gt; &lt;CRLF&gt;

SMTP CODE SUCCESS: 250
SMTP CODE FAILURE: 550
SMTP CODE ERROR  : 500,501,502,504,421
</pre>
<DL>
	<DT>Function Parameters:</DT>
	

	<DT>Function Info:</DT>
	
	<DD><b>Return</b> - <CODE>array</CODE></DD>
	
	<DD><b>Access</b> - <CODE>public</CODE></DD>
	
</DL>

<HR>

<A NAME='Hello'><!-- --></A><H3>Hello</H3>
<P><B>bool Hello ( $host )</B></P>
<P></P>
<!-- ========== Info from phpDoc block ========= -->
<b>Sends the HELO command to the smtp server.</b>
<pre>
This makes sure that we and the server are in
the same known state.

Implements from rfc 821: HELO &lt;SP&gt; &lt;domain&gt; &lt;CRLF&gt;

SMTP CODE SUCCESS: 250
SMTP CODE ERROR  : 500, 501, 504, 421
</pre>
<DL>
	<DT>Function Parameters:</DT>
	

	<DT>Function Info:</DT>
	
	<DD><b>Access</b> - <CODE>public</CODE></DD>
	
</DL>

<HR>

<A NAME='Help'><!-- --></A><H3>Help</H3>
<P><B>string Help ( $keyword )</B></P>
<P></P>
<!-- ========== Info from phpDoc block ========= -->
<b>Gets help information on the keyword specified.</b>
<pre>
If the keyword
is not specified then returns generic help, ussually contianing
A list of keywords that help is available on. This function
returns the results back to the user. It is up to the user to
handle the returned data. If an error occurs then false is
returned with $this-&gt;error set appropiately.

Implements rfc 821: HELP [ &lt;SP&gt; &lt;string&gt; ] &lt;CRLF&gt;

SMTP CODE SUCCESS: 211,214
SMTP CODE ERROR  : 500,501,502,504,421
</pre>
<DL>
	<DT>Function Parameters:</DT>
	

	<DT>Function Info:</DT>
	
	<DD><b>Access</b> - <CODE>public</CODE></DD>
	
</DL>

<HR>

<A NAME='Mail'><!-- --></A><H3>Mail</H3>
<P><B>bool Mail ( $from )</B></P>
<P></P>
<!-- ========== Info from phpDoc block ========= -->
<b>Starts a mail transaction from the email address specified in
$from. Returns true if successful or false otherwise.</b>
<pre>
If True
the mail transaction is started and then one or more Recipient
commands may be called followed by a Data command.

Implements rfc 821: MAIL &lt;SP&gt; FROM:&lt;reverse-path&gt; &lt;CRLF&gt;

SMTP CODE SUCCESS: 250
SMTP CODE SUCCESS: 552,451,452
SMTP CODE SUCCESS: 500,501,421
</pre>
<DL>
	<DT>Function Parameters:</DT>
	

	<DT>Function Info:</DT>
	
	<DD><b>Access</b> - <CODE>public</CODE></DD>
	
</DL>

<HR>

<A NAME='Noop'><!-- --></A><H3>Noop</H3>
<P><B>bool Noop (  )</B></P>
<P></P>
<!-- ========== Info from phpDoc block ========= -->
<b>Sends the command NOOP to the SMTP server.</b>
<pre>
Implements from rfc 821: NOOP &lt;CRLF&gt;

SMTP CODE SUCCESS: 250
SMTP CODE ERROR  : 500, 421
</pre>
<DL>
	<DT>Function Parameters:</DT>
	

	<DT>Function Info:</DT>
	
	<DD><b>Access</b> - <CODE>public</CODE></DD>
	
</DL>

<HR>

<A NAME='Quit'><!-- --></A><H3>Quit</H3>
<P><B>bool Quit ( [$close_on_error = true] )</B></P>
<P></P>
<!-- ========== Info from phpDoc block ========= -->
<b>Sends the quit command to the server and then closes the socket
if there is no error or the $close_on_error argument is true.</b>
<pre>
Implements from rfc 821: QUIT &lt;CRLF&gt;

SMTP CODE SUCCESS: 221
SMTP CODE ERROR  : 500
</pre>
<DL>
	<DT>Function Parameters:</DT>
	

	<DT>Function Info:</DT>
	
	<DD><b>Access</b> - <CODE>public</CODE></DD>
	
</DL>

<HR>

<A NAME='Recipient'><!-- --></A><H3>Recipient</H3>
<P><B>bool Recipient ( $to )</B></P>
<P></P>
<!-- ========== Info from phpDoc block ========= -->
<b>Sends the command RCPT to the SMTP server with the TO: argument of $to.
Returns true if the recipient was accepted false if it was rejected.</b>
<pre>
Implements from rfc 821: RCPT &lt;SP&gt; TO:&lt;forward-path&gt; &lt;CRLF&gt;

SMTP CODE SUCCESS: 250,251
SMTP CODE FAILURE: 550,551,552,553,450,451,452
SMTP CODE ERROR  : 500,501,503,421
</pre>
<DL>
	<DT>Function Parameters:</DT>
	

	<DT>Function Info:</DT>
	
	<DD><b>Access</b> - <CODE>public</CODE></DD>
	
</DL>

<HR>

<A NAME='Reset'><!-- --></A><H3>Reset</H3>
<P><B>bool Reset (  )</B></P>
<P></P>
<!-- ========== Info from phpDoc block ========= -->
<b>Sends the RSET command to abort and transaction that is
currently in progress.</b>
<pre>
Returns true if successful false
otherwise.

Implements rfc 821: RSET &lt;CRLF&gt;

SMTP CODE SUCCESS: 250
SMTP CODE ERROR  : 500,501,504,421
</pre>
<DL>
	<DT>Function Parameters:</DT>
	

	<DT>Function Info:</DT>
	
	<DD><b>Access</b> - <CODE>public</CODE></DD>
	
</DL>

<HR>

<A NAME='Send'><!-- --></A><H3>Send</H3>
<P><B>bool Send ( $from )</B></P>
<P></P>
<!-- ========== Info from phpDoc block ========= -->
<b>Starts a mail transaction from the email address specified in</b>
<pre>
$from. Returns true if successful or false otherwise. If True
the mail transaction is started and then one or more Recipient
commands may be called followed by a Data command. This command
will send the message to the users terminal if they are logged
in.

Implements rfc 821: SEND &lt;SP&gt; FROM:&lt;reverse-path&gt; &lt;CRLF&gt;

SMTP CODE SUCCESS: 250
SMTP CODE SUCCESS: 552,451,452
SMTP CODE SUCCESS: 500,501,502,421
</pre>
<DL>
	<DT>Function Parameters:</DT>
	

	<DT>Function Info:</DT>
	
	<DD><b>Access</b> - <CODE>public</CODE></DD>
	
</DL>

<HR>

<A NAME='SendAndMail'><!-- --></A><H3>SendAndMail</H3>
<P><B>bool SendAndMail ( $from )</B></P>
<P></P>
<!-- ========== Info from phpDoc block ========= -->
<b>Starts a mail transaction from the email address specified in</b>
<pre>
$from. Returns true if successful or false otherwise. If True
the mail transaction is started and then one or more Recipient
commands may be called followed by a Data command. This command
will send the message to the users terminal if they are logged
in and send them an email.

Implements rfc 821: SAML &lt;SP&gt; FROM:&lt;reverse-path&gt; &lt;CRLF&gt;

SMTP CODE SUCCESS: 250
SMTP CODE SUCCESS: 552,451,452
SMTP CODE SUCCESS: 500,501,502,421
</pre>
<DL>
	<DT>Function Parameters:</DT>
	

	<DT>Function Info:</DT>
	
	<DD><b>Access</b> - <CODE>public</CODE></DD>
	
</DL>

<HR>

<A NAME='SendOrMail'><!-- --></A><H3>SendOrMail</H3>
<P><B>bool SendOrMail ( $from )</B></P>
<P></P>
<!-- ========== Info from phpDoc block ========= -->
<b>Starts a mail transaction from the email address specified in</b>
<pre>
$from. Returns true if successful or false otherwise. If True
the mail transaction is started and then one or more Recipient
commands may be called followed by a Data command. This command
will send the message to the users terminal if they are logged
in or mail it to them if they are not.

Implements rfc 821: SOML &lt;SP&gt; FROM:&lt;reverse-path&gt; &lt;CRLF&gt;

SMTP CODE SUCCESS: 250
SMTP CODE SUCCESS: 552,451,452
SMTP CODE SUCCESS: 500,501,502,421
</pre>
<DL>
	<DT>Function Parameters:</DT>
	

	<DT>Function Info:</DT>
	
	<DD><b>Access</b> - <CODE>public</CODE></DD>
	
</DL>

<HR>

<A NAME='Turn'><!-- --></A><H3>Turn</H3>
<P><B>bool Turn (  )</B></P>
<P></P>
<!-- ========== Info from phpDoc block ========= -->
<b>This is an optional command for SMTP that this class does not
support.</b>
<pre>
This method is here to make the RFC821 Definition
complete for this class and __may__ be implimented in the future

Implements from rfc 821: TURN &lt;CRLF&gt;

SMTP CODE SUCCESS: 250
SMTP CODE FAILURE: 502
SMTP CODE ERROR  : 500, 503
</pre>
<DL>
	<DT>Function Parameters:</DT>
	

	<DT>Function Info:</DT>
	
	<DD><b>Access</b> - <CODE>public</CODE></DD>
	
</DL>

<HR>

<A NAME='Verify'><!-- --></A><H3>Verify</H3>
<P><B>int Verify ( $name )</B></P>
<P></P>
<!-- ========== Info from phpDoc block ========= -->
<b>Verifies that the name is recognized by the server.</b>
<pre>
Returns false if the name could not be verified otherwise
the response from the server is returned.

Implements rfc 821: VRFY &lt;SP&gt; &lt;string&gt; &lt;CRLF&gt;

SMTP CODE SUCCESS: 250,251
SMTP CODE FAILURE: 550,551,553
SMTP CODE ERROR  : 500,501,502,421
</pre>
<DL>
	<DT>Function Parameters:</DT>
	

	<DT>Function Info:</DT>
	
	<DD><b>Access</b> - <CODE>public</CODE></DD>
	
</DL>

<HR>


<hr>
</HTML>
Return current item: PLiMa