Skip to content

Commit

Permalink
PHPMailer#2999 introduced a new pattern checker and implemented a new…
Browse files Browse the repository at this point in the history
… function within PHPMailer. This enhancement enables you to directly invoke getLastTransactionID on PHPMailer itself
  • Loading branch information
vijayadsandurl committed Jan 7, 2024
1 parent 5372c16 commit 57a3f5e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/PHPMailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -5249,4 +5249,14 @@ public function setOAuth(OAuthTokenProvider $oauth)
{
$this->oauth = $oauth;
}
}


/**
* Get the last transaction ID.
*
* @return string The last transaction ID.
*/
public function getLastTransactionID() {
return $this->smtp->getLastTransactionID();
}
}
1 change: 1 addition & 0 deletions src/SMTP.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 (.*)/'
];

/**
Expand Down

0 comments on commit 57a3f5e

Please sign in to comment.