Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
X-mailer and X-priority headers can impact the quality of email for various delivery systems and increase the chances that a message will be marked as spam. The SMPT module should only set these headers when it is configured to operate in debug mode.
Original report by @VanHomero
The module add in X-mailer header the version of PHPMailer.
Comment | File | Size | Author |
---|---|---|---|
#4 | disabled-headers-2908655-4.patch | 977 bytes | VanHomero |
| |||
#3 | add-validation-2908655-3.patch | 873 bytes | VanHomero |
| |||
#2 | add-validation-2908655-2.patch | 35.71 KB | VanHomero |
|
Comments
Comment #2
VanHomero CreditAttribution: VanHomero as a volunteer commentedAdd the X-Mailer header only if Debugger is active.
Comment #3
VanHomero CreditAttribution: VanHomero as a volunteer commentedFix patch comment 2.
Comment #4
VanHomero CreditAttribution: VanHomero as a volunteer commentedTo improve the quality of the mail, disable X-Mailer with PHPMailer source and X-Priority.
Comment #5
VanHomero CreditAttribution: VanHomero as a volunteer commentedComment #6
asrobComment #7
dwwImproved the title and issue summary to make it clear what this bug report is about. At first glance, I had no idea what this was for.
However, the code in question is actually from an external library. I think the better solution is #2711559: Set phpMailer as a external library using composer (and update it to 6.0). Probably the latest version of the library fixes this behavior. If not, this really belongs as an issue upstream, not here.
Comment #8
Chris Matthews CreditAttribution: Chris Matthews as a volunteer and at City of Oaks Design commentedAgree with @dww's comments in #7 so closing this 2 year old issue in favor of #2711559: Set phpMailer as a external library using composer (and update it to 6.0).