[wp-trac] [WordPress Trac] #53393: Latest version of PHPMailer no longer attaches files to emails
WordPress Trac
noreply at wordpress.org
Thu Mar 20 17:13:41 UTC 2025
#53393: Latest version of PHPMailer no longer attaches files to emails
------------------------------------+-----------------------------
Reporter: threeatetwo | Owner: (none)
Type: enhancement | Status: closed
Priority: normal | Milestone: Future Release
Component: Mail | Version: 5.7.2
Severity: normal | Resolution: invalid
Keywords: has-testing-info close | Focuses:
------------------------------------+-----------------------------
Changes (by SirLouen):
* keywords: needs-testing needs-testing-info needs-patch => has-testing-
info close
* status: new => closed
* resolution: => invalid
* type: defect (bug) => enhancement
Comment:
@threeatetwo I've been analyzing this ticket to try to reach a conclusion.
✅Everything is working as expected. There is no bug here
Remember that WordPress, by default, only provides a very simple wrapper
for PHPMailer that any plugin can take advantage of extending via
`phpmailer_init` action hook. But given the out-of-the-box mailing simple
functionality of WordPress, I can't foresee an enhancement for this
anytime soon.
Anyway, I provide you here with an example on how you can add attachments
to the `phpmailer_init` hook (for example, you should be passing the
s3_path from the result of a `WP_Query` or something like that or whatever
idea have the plugin maintainers in mind).
Here is the plugin
https://github.com/SirLouen/amazon-s3-email-
testing/archive/refs/tags/1.0.0.zip
This said, this plugin serves as testing instructions @Boniu91
I'm going to set this ticket as candidate to close + wontfix.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53393#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list