PHPMailer RFC821 SMTP email transport class.
Implements RFC 821 SMTP commands and provides some utility methods for sending mail to an SMTP server.
Located in /class.smtp.php (line 27)
SMTP reply line ending.
How to handle debug output.
Options: * `echo` Output plain-text as-is, appropriate for CLI * `html` Output escaped, line breaks converted to `
`, appropriate for browser output * `error_log` Output to error log as configured in php.ini
Alternatively, you can provide a callable expecting two params: a message string and the debug level:
Debug output level.
Options: * self::DEBUG_OFF (`0`) No debug output, default * self::DEBUG_CLIENT (`1`) Client commands * self::DEBUG_SERVER (`2`) Client commands and server responses * self::DEBUG_CONNECTION (`3`) As DEBUG_SERVER plus connection status * self::DEBUG_LOWLEVEL (`4`) Low-level data output, all messages
Whether to use VERP.
Error information, if any, for the last SMTP command.
The reply the server sent to us for HELO.
If null, no HELO string has yet been received.
The most recent reply received from the server.
The set of SMTP extensions sent in reply to EHLO command.
Indexes of the array are extension names. Value at index 'HELO' or 'EHLO' (according to command that was sent) represents the server name. In case of HELO it is the only element of the array. Other values can be boolean TRUE or an array containing extension options. If null, no HELO/EHLO string has yet been received.
The socket for the server connection.
SMTP server port number.
How long to wait for commands to complete, in seconds.
Default of 5 minutes (300sec) is from RFC2821 section 4.5.3.2
The timeout value for connection, in seconds.
Default of 5 minutes (300sec) is from RFC2821 section 4.5.3.2 This needs to be quite high to function correctly with hosts using greetdelay as an anti-spam measure.
The PHPMailer SMTP Version number.
Perform SMTP authentication.
Must be run after hello().
Send raw data to the server.
Close the socket and clean up the state of the class.
Don't use this function without first trying to use QUIT.
Connect to an SMTP server.
Check connection state.
Send an SMTP DATA command.
Issues a data command and sends the msg_data to the server, 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 <CRLF> with the message headers and the message body being separated by and additional <CRLF>. Implements rfc 821: DATA <CRLF>
Output debugging info via a user-selected method.
Reports an error number and string.
Get debug output level.
Get debug output method.
Get the latest error.
Get the last reply from the server.
Will return the ID of the last smtp transaction based on a list of patterns provided in SMTP::$smtp_transaction_id_patterns.
If no reply has been received yet, it will return null. If no pattern has been matched, it will return false.
A multipurpose method
The method works in three ways, dependent on argument value and current state
Get SMTP extensions available on the server
Get SMTP timeout.
Get VERP address generation mode.
Read the SMTP server's response.
Either before eof or socket timeout occurs on the operation. With SMTP we can tell if we have more lines to read if the 4th character is '-' symbol. If it is a space then we don't need to read anything else.
Send an SMTP HELO or EHLO command.
Used to identify the sending server to the receiving server. This makes sure that client and server are in a known state. Implements RFC 821: HELO <SP> <domain> <CRLF> and RFC 2821 EHLO.
Calculate an MD5 HMAC hash.
Works like hash_hmac('md5', $data, $key) in case that function is not available
Send an SMTP MAIL command.
Starts a mail transaction from the email address specified in $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. Implements rfc 821: MAIL <SP> FROM:<reverse-path> <CRLF>
Send an SMTP NOOP command.
Used to keep keep-alives alive, doesn't actually do anything
Parse a reply to HELO/EHLO command to discover server extensions.
In case of HELO, the only parameter that can be discovered is a server name.
Send an SMTP QUIT command.
Closes the socket if there is no error or the $close_on_error argument is true. Implements from rfc 821: QUIT <CRLF>
Send an SMTP RCPT command.
Sets the TO argument to $toaddr. Returns true if the recipient was accepted false if it was rejected. Implements from rfc 821: RCPT <SP> TO:<forward-path> <CRLF>
Send an SMTP RSET command.
Abort any transaction that is currently in progress. Implements rfc 821: RSET <CRLF>
Send an SMTP SAML command.
Starts a mail transaction from the email address specified in $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 <SP> FROM:<reverse-path> <CRLF>
Send a command to an SMTP server and check its return code.
Send an SMTP HELO or EHLO command.
Low-level implementation used by hello()
Set debug output level.
Set debug output method.
Set error messages and codes.
Set SMTP timeout.
Enable or disable VERP address generation.
Initiate a TLS (encrypted) session.
Send an SMTP TURN command.
This is an optional command for SMTP that this class does not support. This method is here to make the RFC821 Definition complete for this class and _may_ be implemented in future Implements from rfc 821: TURN <CRLF>
Send an SMTP VRFY command.
SMTP line break constant.
Debug level to show client -> server messages
Debug level to show connection status, client -> server and server -> client messages
Debug level to show all messages
Debug level for no output
Debug level to show client -> server and server -> client messages
The SMTP port to use if one is not specified.
The maximum line length allowed by RFC 2822 section 2.1.1
The PHPMailer SMTP version number.
Documentation generated on Mon, 09 Jan 2017 11:55:17 +0000 by phpDocumentor 1.4.3