WPDev.one
Core Class

SMTP

class SMTP // Constructor: function Object() { [native code] }

PHPMailer RFC821 SMTP email transport class.

Methods 40 methods

Method / Return Description
edebug()
void

Output debugging info via a user-selected method.

Parameters: $str: mixed, $level: mixed
connect()
bool

Connect to an SMTP server.

Parameters: $host: mixed, $port: mixed, $timeout: mixed, $options: mixed
getSMTPConnection()
(false

Create connection to the SMTP server.

Parameters: $host: mixed, $port: mixed, $timeout: mixed, $options: mixed
startTLS()
bool

Initiate a TLS (encrypted) session.

authenticate()
bool

Perform SMTP authentication.

Parameters: $username: mixed, $password: mixed, $authtype: mixed, $OAuth: mixed
hmac()
string

Calculate an MD5 HMAC hash.

Parameters: $data: mixed, $key: mixed
connected()
bool

Check connection state.

close()
void

Close the socket and clean up the state of the class.

data()
bool

Send an SMTP DATA command.

Parameters: $msg_data: mixed
hello()
bool

Send an SMTP HELO or EHLO command.

Parameters: $host: mixed
sendHello()
bool

Send an SMTP HELO or EHLO command.

Parameters: $hello: mixed, $host: mixed
parseHelloFields()
void

Parse a reply to HELO/EHLO command to discover server extensions.

Parameters: $type: mixed
mail()
bool

Send an SMTP MAIL command.

Parameters: $from: mixed
quit()
bool

Send an SMTP QUIT command.

Parameters: $close_on_error: mixed
recipient()
bool

Send an SMTP RCPT command.

Parameters: $address: mixed, $dsn: mixed
xclient()
bool

Send SMTP XCLIENT command to server and check its return code.

Parameters: $vars: array
reset()
bool

Send an SMTP RSET command.

sendCommand()
bool

Send a command to an SMTP server and check its return code.

Parameters: $command: mixed, $commandstring: mixed, $expect: mixed
sendAndMail()
bool

Send an SMTP SAML command.

Parameters: $from: mixed
verify()
bool

Send an SMTP VRFY command.

Parameters: $name: mixed
noop()
bool

Send an SMTP NOOP command.

turn()
bool

Send an SMTP TURN command.

client_send()
(int

Send raw data to the server.

Parameters: $data: mixed, $command: mixed
getError()
array

Get the latest error.

getServerExtList()
(array

Get SMTP extensions available on the server.

getServerExt()
(string

Get metadata about the SMTP server from its HELO/EHLO response.

Parameters: $name: mixed
getLastReply()
string

Get the last reply from the server.

get_lines()
string

Read the SMTP server's response.

setVerp()
void

Enable or disable VERP address generation.

Parameters: $enabled: mixed
getVerp()
bool

Get VERP address generation mode.

setError()
void

Set error messages and codes.

Parameters: $message: mixed, $detail: mixed, $smtp_code: mixed, $smtp_code_ex: mixed
setDebugOutput()
void

Set debug output method.

Parameters: $method: mixed
getDebugOutput()
string

Get debug output method.

setDebugLevel()
void

Set debug output level.

Parameters: $level: mixed
getDebugLevel()
int

Get debug output level.

setTimeout()
void

Set SMTP timeout.

Parameters: $timeout: mixed
getTimeout()
int

Get SMTP timeout.

errorHandler()
void

Reports an error number and string.

Parameters: $errno: mixed, $errmsg: mixed, $errfile: mixed, $errline: mixed
recordLastTransactionID()
(bool

Extract and return the ID of the last SMTP transaction based on

getLastTransactionID()
(bool

Get the queue/transaction ID of the last SMTP transaction

Properties

Property / Type Description
$do_debug
mixed
public
No description available.
$Debugoutput
mixed
public
No description available.
$do_verp
mixed
public
No description available.
$Timeout
mixed
public
No description available.
$Timelimit
mixed
public
No description available.
$smtp_transaction_id_patterns
mixed
public
No description available.
$xclient_allowed_attributes
mixed
public
No description available.
$last_smtp_transaction_id
mixed
public
No description available.
$smtp_conn
mixed
public
No description available.
$error
mixed
public
No description available.
$helo_rply
mixed
public
No description available.
$server_caps
mixed
public
No description available.
$last_reply
mixed
public
No description available.

Class Information

Source File
wp-includes/PHPMailer/SMTP.php
Advertisement