Public Method Details |
Net_SMTP |
public void Net_SMTP( [ string $host, string $port, string $localhost ] )
|
|
Constructor
Instantiates a new Net_SMTP object, overriding any defaultswith parameters that are passed in.
|
Parameter |
|
string |
$host |
= >>null,<< |
|
server to connect to. |
|
|
string |
$port |
= >>null,<< |
|
port to connect to. |
|
|
string |
$localhost |
= >>null<< |
|
value to give when sending EHLO or HELO. |
|
Returns |
void |
|
connect |
public mixed connect( )
|
|
Attempt to connect to the SMTP server.
|
Returns |
mixed Returns a PEAR_Error with an error message on any
kind of failure, or true on success. |
|
disconnect |
public mixed disconnect( )
|
|
Attempt to disconnect from the SMTP server.
|
Returns |
mixed Returns a PEAR_Error with an error message on any
kind of failure, or true on success. |
|
auth |
public mixed auth( string $uid, string $pwd )
|
|
Attempt to do SMTP authentication.
|
Parameter |
|
string |
$uid |
|
|
userid to authenticate as. |
|
|
string |
$pwd |
|
|
password to authenticate with. |
|
Returns |
mixed Returns a PEAR_Error with an error message on any
kind of failure, or true on success. |
|
helo |
public mixed helo( string $domain )
|
|
Send the HELO command.
|
Parameter |
|
string |
$domain |
|
|
domain name to say we are. |
|
Returns |
mixed Returns a PEAR_Error with an error message on any
kind of failure, or true on success. |
|
mailFrom |
public mixed mailFrom( string $reverse_path )
|
|
Send the MAIL FROM: command.
|
Parameter |
|
string |
$reverse_path |
|
|
sender (reverse path) to set. |
|
Returns |
mixed Returns a PEAR_Error with an error message on any
kind of failure, or true on success. |
|
rcptTo |
public mixed rcptTo( string $forward_path )
|
|
Send the RCPT TO: command.
|
Parameter |
|
string |
$forward_path |
|
|
recipient (forward path) to add. |
|
Returns |
mixed Returns a PEAR_Error with an error message on any
kind of failure, or true on success. |
|
data |
public mixed data( string $data )
|
|
Send the DATA command.
|
Parameter |
|
string |
$data |
|
|
message body to send. |
|
Returns |
mixed Returns a PEAR_Error with an error message on any
kind of failure, or true on success. |
|
send_from |
public mixed send_from( string $reverse_path )
|
|
Send the SEND FROM: command.
|
Parameter |
|
string |
$reverse_path |
|
|
reverse path to send. |
|
Returns |
mixed Returns a PEAR_Error with an error message on any
kind of failure, or true on success. |
|
soml_from |
public mixed soml_from( string $reverse_path )
|
|
Send the SOML FROM: command.
|
Parameter |
|
string |
$reverse_path |
|
|
reverse path to send. |
|
Returns |
mixed Returns a PEAR_Error with an error message on any
kind of failure, or true on success. |
|
saml_from |
public mixed saml_from( string $reverse_path )
|
|
Send the SAML FROM: command.
|
Parameter |
|
string |
$reverse_path |
|
|
reverse path to send. |
|
Returns |
mixed Returns a PEAR_Error with an error message on any
kind of failure, or true on success. |
|
rset |
public mixed rset( )
|
|
Send the RSET command.
|
Returns |
mixed Returns a PEAR_Error with an error message on any
kind of failure, or true on success. |
|
vrfy |
public mixed vrfy( string $string )
|
|
Send the VRFY command.
|
Parameter |
|
string |
$string |
|
|
string to verify |
|
Returns |
mixed Returns a PEAR_Error with an error message on any
kind of failure, or true on success. |
|
noop |
public mixed noop( )
|
|
Send the NOOP command.
|
Returns |
mixed Returns a PEAR_Error with an error message on any
kind of failure, or true on success. |
|