Automattic / WP-Job-Manager

Manage job listings from the WordPress admin panel, and allow users to post jobs directly to your site.
https://wpjobmanager.com
GNU General Public License v3.0
899 stars 368 forks source link

Multipart e-mails not working with some SMTP providers / plugins #2753

Closed yscik closed 7 months ago

yscik commented 8 months ago

Describe the bug

When sending e-mails after 2.2.0, where multipart e-mails were introduced, the final e-mail is usually sent out with a text/html content type, and the plain text part and the boundary headers are output.

image

image

image

Tried 3 different SMTP plugins fluent smtp: won't sent (error code below) WP Mail SMTP: sends - but includes the error text below Post SMTP Mailer: sends, not not plain text. also includes some of the broken code below.

So far SendGrid is a confirmed provider where things break.

More context: p1707231412995879-slack-C6GGX896G