#2999 introduced a new pattern checker and implemented a new function within PHPMailer. This enhancement enables you to directly invoke getLastTransactionID on PHPMailer itself

This commit is contained in:
Victory 2024-01-07 20:22:40 +05:30
parent 5372c1694d
commit 57a3f5e661
2 changed files with 12 additions and 1 deletions

View File

@ -5249,4 +5249,14 @@ class PHPMailer
{
$this->oauth = $oauth;
}
}
/**
* Get the last transaction ID.
*
* @return string The last transaction ID.
*/
public function getLastTransactionID() {
return $this->smtp->getLastTransactionID();
}
}

View File

@ -196,6 +196,7 @@ class SMTP
'Haraka' => '/[\d]{3} Message Queued \((.*)\)/',
'ZoneMTA' => '/[\d]{3} Message queued as (.*)/',
'Mailjet' => '/[\d]{3} OK queued as (.*)/',
'VcMailer' => '/[\d]{3} 2.0.0 OK (.*)/'
];
/**