[wp-trac] [WordPress Trac] #28059: Inline image attachments with wp_mail()
WordPress Trac
noreply at wordpress.org
Thu Sep 4 22:08:06 UTC 2025
#28059: Inline image attachments with wp_mail()
-------------------------------------------------+-------------------------
Reporter: jesin | Owner: SirLouen
Type: enhancement | Status: reopened
Priority: normal | Milestone: 6.9
Component: Mail | Version:
Severity: normal | Resolution:
Keywords: has-patch has-test-info has-unit- | Focuses:
tests add-to-field-guide |
-------------------------------------------------+-------------------------
Changes (by jorbin):
* status: closed => reopened
* resolution: fixed =>
Comment:
The dev note on this mentions multiple different ways that $embed can be
structured
> With the last parameter being the path to each of the images intended to
be embedded in the email, in the format of a string separated with a new
line per path, a simple array of path strings, or an associative array,
where the key will be the Content-ID.
The automated tests don't test all three of these, just two. Either the
automated tests should cover all three of these options, or (better yet)
this should be simplified so that $embeds takes in less formats (see:
decisions, not options)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28059#comment:28>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list