property SMTP::$smtp_transaction_id_patterns

Patterns to extract an SMTP transaction id from reply to a DATA command. The first capture group in each regex will be used as the ID. MS ESMTP returns the message ID, which may not be correct for internal tracking.

Type: string[]

File

inc/PHPMailer/src/SMTP.php, line 157

Class

SMTP
PHPMailer RFC821 SMTP email transport class. Implements RFC 821 SMTP commands and provides some utility methods for sending mail to an SMTP server.

Code

protected $smtp_transaction_id_patterns =['exim' '/[\d]{3} OK id=(.*)/' 'sendmail' '/[\d]{3} 2.0.0 (.*) Message/' 'postfix' '/[\d]{3} 2.0.0 Ok: queued as (.*)/' 'Microsoft_ESMTP' '/[0-9]{3} 2.[\d].0 (.*)@(?:.*) Queued mail for delivery/' 'Amazon_SES' '/[\d]{3} Ok (.*)/' 'SendGrid' '/[\d]{3} Ok: queued as (.*)/' 'CampaignMonitor' '/[\d]{3} 2.0.0 OK:([a-zA-Z\d]{48})/'];