We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
With current version of phpMailer, using smtp->getLastTransactionID() returns false.
$smtp->send(); $smtp_transaction_id = $smtp->getLastTransactionID(); var_export($smtp_transaction_id);
[bens@tesla sb4]$ hg diff sb/modules/phpmailer/vendor/phpmailer/phpmailer/src/SMTP.php diff -r f26ab610cc95 sb/modules/phpmailer/vendor/phpmailer/phpmailer/src/SMTP.php --- a/sb/modules/phpmailer/vendor/phpmailer/phpmailer/src/SMTP.php Sat Dec 30 14:31:06 2023 -0800 +++ b/sb/modules/phpmailer/vendor/phpmailer/phpmailer/src/SMTP.php Mon Jan 01 21:22:24 2024 -0800 @@ -185,6 +185,7 @@ 'Amazon_SES' => '/[\d]{3} Ok (.)/', 'SendGrid' => '/[\d]{3} Ok: queued as (.)/', 'CampaignMonitor' => '/[\d]{3} 2.0.0 OK:([a-zA-Z\d]{48})/',
'MailerSend' => '/[\d]{3} Message queued as (.*)/'
];
/**
The text was updated successfully, but these errors were encountered:
Online editor made a dog's breakfast out of the diff, I've also posted it here: https://effortlessis.com/mailersend.txt
Thanks for the excellent project!!
Sorry, something went wrong.
I'm not sure why you're getting that result, because that exact pattern is already there – it's the same as for ZoneMTA.
PHPMailer#2999 introduced a new pattern checker and implemented a new…
57a3f5e
… function within PHPMailer. This enhancement enables you to directly invoke getLastTransactionID on PHPMailer itself
No branches or pull requests
Problem description
With current version of phpMailer, using smtp->getLastTransactionID() returns false.
Code to reproduce
$smtp->send();
$smtp_transaction_id = $smtp->getLastTransactionID();
var_export($smtp_transaction_id);
Simple fix is below:
[bens@tesla sb4]$ hg diff sb/modules/phpmailer/vendor/phpmailer/phpmailer/src/SMTP.php
diff -r f26ab610cc95 sb/modules/phpmailer/vendor/phpmailer/phpmailer/src/SMTP.php
--- a/sb/modules/phpmailer/vendor/phpmailer/phpmailer/src/SMTP.php Sat Dec 30 14:31:06 2023 -0800
+++ b/sb/modules/phpmailer/vendor/phpmailer/phpmailer/src/SMTP.php Mon Jan 01 21:22:24 2024 -0800
@@ -185,6 +185,7 @@
'Amazon_SES' => '/[\d]{3} Ok (.)/',
'SendGrid' => '/[\d]{3} Ok: queued as (.)/',
'CampaignMonitor' => '/[\d]{3} 2.0.0 OK:([a-zA-Z\d]{48})/',
];
/**
The text was updated successfully, but these errors were encountered: