Does PHPMailer work in a different way with PHP 5.6 to 7.4? (Amazon AWS SES SNS X-PHP Headers) #2901
Replies: 3 comments 4 replies
-
I can't really tell what might be amiss without seeing your code, but generally, no, there should be no difference like this across PHP versions. Separately, I'd recommend that you move to a supported version of PHP. |
Beta Was this translation helpful? Give feedback.
-
SMTPdebug helped me find the cause, in a round-a-bout way. I use the same settings on a couple different pages so put them in an inc file and included in the pages. (I realise this is not logical really, I'm already using env variables. Just got carried away trying to clean up the old Dreamweaver spaghetti code!)
SMTPDebug output 1 email's details, the same email as the SNS delivery receipt, but after that listed all the sent to emails after triggering $mail->send(). So still find it strange how all the emails were being delivered via AWS, but not issuing SNS email receipts, AND, only showing 1 email as being sent on the SES dashboard. It's like a hack to over-send on your daily quoter! o_O Thanks so much, Synchro. |
Beta Was this translation helpful? Give feedback.
-
p.s. Quickie re X-PHP headers to help anyone else looking for the same issue. Amazingly my shared hosting allowed me to add to my .htaccess:
I relied on Chat-GPT to give me this hint, Google search has become untenable for finding reliable information. |
Beta Was this translation helpful? Give feedback.
-
Hello.
I'm really confused ATM. I recently upgraded PHPMailer from 6.1.7 to 6.8, and moved from PHP5.6 to 7.4.
My app mailing seems to work exactly the same, and looped through mails are being delivered in my tests with no errors.
Funny thing is though, I now only receive 1 single Amazon AWS delivery notification from the sent batch, that one being for the first email in the batch that was triggered.
I re-installed PHPMailer 6.1.7 to see if it changed back, but no... so am wondering, has changing to PHP7.4 got anything to do with it.
It's sort as if now, one loop through of about 20 emails, is classed as 1 email being sent.
I'm a bit puzzled by it
Beta Was this translation helpful? Give feedback.
All reactions