[buddypress-trac] [BuddyPress Trac] #7697: Outlook.com rejects emails from BuddyPress.

buddypress-trac noreply at wordpress.org
Mon Feb 19 19:15:26 UTC 2018


#7697: Outlook.com rejects emails from BuddyPress.
--------------------------+-----------------------------
 Reporter:  jcrr          |      Owner:  DJPaul
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Emails        |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 This is a follow-up to #7390.

 By request I'm opening this issue. Please, read the retated one (#7390).

 Outlook.com users will not receive the BuddyPress emails because of the
 List-Unsubscribe header.

 This issue is resolved by commenting out the lines that add this header as
 I mentioned in the forums:

 {{{
 // Add 'List-Unsubscribe' header if applicable.
 if ( ! empty( $tokens['unsubscribe'] ) && $tokens['unsubscribe'] !==
 site_url( 'wp-login.php' ) ) {
     $user = get_user_by( 'email', $tokens['recipient.email'] );

     $headers['List-Unsubscribe'] = sprintf(
                                 '<%s>',
                                 esc_url_raw(
 bp_email_get_unsubscribe_link( array(
                                 'user_id'           => $user->ID,
                                 'notification_type' => $email->get( 'type'
 ),
                                 ) ) )
     );
 }

 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7697>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list