wp-includes/PHPMailer/SMTP.php:31PHPMailer RFC821 SMTP email transport class.
$do_debugintpublic$Debugoutputstring|callable|Psr\Log\LoggerInterfacepublic$do_verpboolpublic$do_smtputf8boolpublic$Timeoutintpublic$Timelimitintpublic$smtp_transaction_id_patternsstring[]protected$xclient_allowed_attributesarraypublic static$last_smtp_transaction_idstring|bool|nullprotected$smtp_connPHPMailer\PHPMailer\?resourceprotected$errorarrayprotected$helo_rplystring|nullprotected$server_capsarray|nullprotected$last_replystringprotectedclass SMTP{ /** * The PHPMailer SMTP version number. * * @var string * @deprecated This constant will be removed in PHPMailer 8.0. Use `PHPMailer::VERSION` instead. */ const VERSION = '7.0.2'; /** * SMTP line break constant. * * @var string */ const LE = "\r\n"; /** * The SMTP port to use if one is not specified. * * @var int */ const DEFAULT_PORT = 25; /** * The SMTPs port to use if one is not specified. * * @var int */ const DEFAULT_SECURE_PORT = 465; /** * The maximum line length allowed by RFC 5321 section 4.5.3.1.6, * *excluding* a trailing CRLF break. * * @see https://www.rfc-editor.org/rfc/rfc5321#section-4.5.3.1.6 * * @var int */ const MAX_LINE_LENGTH = 998; /** * The maximum line length allowed for replies in RFC 5321 section 4.5.3.1.5, * *including* a trailing CRLF line break. * * @see https://www.rfc-editor.org/rfc/rfc5321#section-4.5.3.1.5 * * @var int */ const MAX_REPLY_LENGTH = 512; /** * Debug level for no output. * * @var int */ const DEBUG_OFF = 0; /** * Debug level to show client -> server messages. * * @var int */ const DEBUG_CLIENT = 1; /** * Debug level to show client -> server and server -> client messages. * * @var int */ const DEBUG_SERVER = 2; /** * Debug level to show connection status, client -> server and server -> client messages. * * @var int */ const DEBUG_CONNECTION = 3; /**3 changes between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
iterateLines() added.verified against sourcesetSMTPUTF8() added.verified against sourcegetSMTPUTF8() added.verified against sourcesrc/wp-includes/PHPMailer/SMTP.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.