#22492 closed defect (bug) (invalid)
Duplicate MIME-Version header
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | minor | Version: | 3.4.2 |
Component: | External Libraries | Keywords: | |
Focuses: | Cc: |
Description
In certain cases, Wordpress sends emails containing two "MIME-Version" headers. This causes email rejections from some Amazon SES SMTP servers in particular.
To reliably reproduce, a default multisite install with BuddyPress can be used. When a user tries to register and create a website, the activation email contains this bug. Unfortunately I don't know how to reproduce this error with Wordpress itself, but I believe this bug is related to the Wordpress core. If any plugin happens to set a custom header of "MIME-Version" to an email message, Wordpress core is the culprit for the insertion of the duplicate mail header.
Patch attached to this report, it's a trivial fix. All the fix does is checks to see if "MIME-Version" was already included in custom mail headers, and if so, don't insert the duplicate header.
Attachments (1)
Change History (7)
#2
@
11 years ago
- Cc bpetty added
- Keywords reporter-feedback added
This sounds like a bug in BuddyPress for specifying a second MIME-Version header in the first place. This should only be the responsibility of library composing the email, meaning only PHPMailer should be adding this.
Besides that though, we would also need confirmation on this bug that the email in question was actually using class-phpmailer.php since it turns out that BuddyPress includes it's own version of PHPMailer (an older 2.0.4 version from bbPress/BackPress) too.
#3
follow-up:
↓ 4
@
11 years ago
I agree, this sounds like an issue in BuddyPress. Letting JJJ know.
class-phpmailer.php patch