[wp-trac] [WordPress Trac] #39742: Password reset link does not show in most email clients due to "<" & ">" wrappers

WordPress Trac noreply at wordpress.org
Tue Jan 31 06:55:01 UTC 2017


#39742: Password reset link does not show in most email clients due to "<" & ">"
wrappers
------------------------------------+-----------------------------
 Reporter:  jackphilippi            |       Owner:
     Type:  defect (bug)            |      Status:  closed
 Priority:  normal                  |   Milestone:
Component:  Login and Registration  |     Version:  4.7.1
 Severity:  normal                  |  Resolution:  duplicate
 Keywords:                          |     Focuses:  administration
------------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * status:  new => closed
 * resolution:   => duplicate
 * milestone:  Awaiting Review =>


Comment:

 Hi @jackphilippi, welcome to Trac! Thanks for the report.

 > Forgot password email are sent correctly, but in some cases, the
 password reset link is not included in the email because the email client
 / browser attempts to parse it as HTML.

 Wrapping URLs in angle brackets is recommended behaviour by both
 [https://www.w3.org/Addressing/URL/5.1_Wrappers.html the W3C] and in
 [https://www.ietf.org/rfc/rfc3986.txt Section C of the URI RFC].

 This issue generally happens if a plugin or theme uses
 `wp_mail_content_type` filter to change the MIME type to `text/html` for
 all outgoing emails, but does not perform any further processing to make
 sure the HTML is valid. The solution in that case is to stop doing that
 and only enable that filter where needed, see the discussion in #21095,
 specifically comment:10:ticket:21095 and comment:12:ticket:21095

 #23578 should improve the situation by checking if `wp_mail_content_type`
 is set to `text/html` and removing the brackets in that case.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39742#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list