Class: Net_SMTP
Source Location: /Net_SMTP-1.9.0/Net/SMTP.php
Provides an implementation of the SMTP protocol using PEAR's Net_Socket class.
Author(s):
|
|
|
Inherited Variables
|
Inherited Methods
|
Class Details
Class Variables
Method Detail
__construct (Constructor) [line 175]
Net_SMTP __construct(
[string
$host = null], [integer
$port = null], [string
$localhost = null], [boolean
$pipelining = false], [integer
$timeout = 0], [array
$socket_options = null], [string
$gssapi_principal = null], [string
$gssapi_cname = null])
|
|
Instantiates a new Net_SMTP object, overriding any defaults with parameters that are passed in. 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();
Parameters:
auth [line 587]
mixed auth(
string
$uid, string
$pwd, [string
$method = ''], [bool
$tls = true], [string
$authz = ''])
|
|
Attempt to do SMTP authentication.
Parameters:
authCRAMMD5 [line 772]
mixed authCRAMMD5(
string
$uid, string
$pwd, [string
$authz = ''])
|
|
Authenticates the user using the CRAM-MD5 method.
Parameters:
authDigestMD5 [line 720]
mixed authDigestMD5(
string
$uid, string
$pwd, [string
$authz = ''])
|
|
Authenticates the user using the DIGEST-MD5 method.
Parameters:
authGSSAPI [line 898]
mixed authGSSAPI(
string
$uid, string
$pwd, [string
$authz = ''])
|
|
Authenticates the user using the GSSAPI method. PHP krb5 extension is required, service principal and credentials cache must be set.
Parameters:
authLogin [line 812]
mixed authLogin(
string
$uid, string
$pwd, [string
$authz = ''])
|
|
Authenticates the user using the LOGIN method.
Parameters:
authPlain [line 857]
mixed authPlain(
string
$uid, string
$pwd, [string
$authz = ''])
|
|
Authenticates the user using the PLAIN method.
Parameters:
authXOAuth2 [line 980]
mixed authXOAuth2(
string
$uid, string
$token, string
$authz,
$conn)
|
|
Authenticates the user using the XOAUTH2 method.
Parameters:
command [line 394]
mixed command(
string
$command, mixed
$valid)
|
|
Issue an SMTP command and verify its response.
Parameters:
connect [line 445]
mixed connect(
[int
$timeout = null], [bool
$persistent = false])
|
|
Attempt to connect to the SMTP server.
Parameters:
data [line 1146]
mixed data(
mixed
$data, [string
$headers = null])
|
|
Send the DATA command.
Parameters:
debug [line 248]
void debug(
string
$message)
|
|
Write the given debug text to the current debug output handler.
Parameters:
disconnect [line 492]
Attempt to disconnect from the SMTP server.
getBestAuthMethod [line 559]
mixed getBestAuthMethod(
)
|
|
Returns the name of the best authentication method that the server has advertised.
getGreeting [line 428]
Return the SMTP server's greeting string.
getResponse [line 415]
Return a 2-tuple containing the last response from the SMTP server.
getServiceExtensions [line 1035]
array getServiceExtensions(
)
|
|
Return the list of SMTP service extensions advertised by the server.
helo [line 1017]
mixed helo(
string
$domain)
|
|
Send the HELO command.
Parameters:
identifySender [line 1404]
boolean identifySender(
)
|
|
Backwards-compatibility method. identifySender()'s functionality is now handled internally.
mailFrom [line 1058]
mixed mailFrom(
string
$sender, [string
$params = null])
|
|
Send the MAIL FROM: command.
Parameters:
negotiate [line 518]
Attempt to send the EHLO command and obtain a list of ESMTP extensions available, and failing that just send HELO.
noop [line 1384]
parseResponse [line 331]
mixed parseResponse(
mixed
$valid, [bool
$later = false])
|
|
Read a reply from the SMTP server. The reply consists of a response code and a response message.
Parameters:
put [line 300]
mixed put(
string
$command, [string
$args = ''])
|
|
Send a command to the server with an optional string of arguments. A carriage return / linefeed (CRLF) sequence will be appended to each command string before it is sent to the SMTP server - an error will be thrown if the command string already contains any newline characters. Use send() for commands that must contain newlines.
Parameters:
quotedata [line 1124]
void quotedata(
string
&$data)
|
|
Quote the data so that it meets SMTP standards. This is provided as a separate public function to facilitate easier overloading for the cases where it is desirable to customize the quoting behavior.
Parameters:
rcptTo [line 1095]
mixed rcptTo(
string
$recipient, [string
$params = null])
|
|
Send the RCPT TO: command.
Parameters:
rset [line 1343]
samlFrom [line 1324]
mixed samlFrom(
string
$path)
|
|
Send the SAML FROM: command.
Parameters:
send [line 271]
mixed send(
string
$data)
|
|
Send the given string of data to the server.
Parameters:
sendFrom [line 1282]
mixed sendFrom(
string
$path)
|
|
Send the SEND FROM: command.
Parameters:
setAuthMethod [line 682]
mixed setAuthMethod(
string
$name, mixed
$callback, [bool
$prepend = true])
|
|
Add a new authentication method.
Parameters:
setDebug [line 235]
void setDebug(
boolean
$debug, [callback
$handler = null])
|
|
Set the value of the debugging flag.
Parameters:
setTimeout [line 222]
void setTimeout(
integer
$seconds, [integer
$microseconds = 0])
|
|
Set the socket I/O timeout value in seconds plus microseconds.
Parameters:
somlFrom [line 1303]
mixed somlFrom(
string
$path)
|
|
Send the SOML FROM: command.
Parameters:
vrfy [line 1364]
mixed vrfy(
string
$string)
|
|
Send the VRFY command.
Parameters:
Documentation generated on Sat, 30 Nov 2019 18:46:06 -0500 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|
|