[wp-trac] [WordPress Trac] #33946: Add pointy brackets to recipient adress of email notifications
WordPress Trac
noreply at wordpress.org
Mon Sep 21 15:13:06 UTC 2015
#33946: Add pointy brackets to recipient adress of email notifications
-------------------------+-----------------------------
Reporter: mnaef | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Mail | Version: 4.3.1
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
HTML emails trigger the TO_NO_BRKTS_HTML_ONLY (To: misformatted and HTML
only) Spamassassin rule which scores 2 points.
Solution for mails being sent via php mail function:
{{{
--- ./wp-includes/class-phpmailer.old.php 2015-09-21
17:10:09.019559000 +0200
+++ ./wp-includes/class-phpmailer.php 2015-09-21 17:10:39.257980000
+0200
@@ -647,9 +647,9 @@
$subject =
$this->encodeHeader($this->secureHeader($subject));
}
if (ini_get('safe_mode') || !($this->UseSendmailOptions)) {
- $result = @mail($to, $subject, $body, $header);
+ $result = @mail('<'.$to.'>', $subject, $body, $header);
} else {
- $result = @mail($to, $subject, $body, $header, $params);
+ $result = @mail('<'.$to.'>', $subject, $body, $header,
$params);
}
return $result;
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33946>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list