#7697 closed defect (bug) (fixed)
Outlook.com rejects emails from BuddyPress.
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 2.9.4 | Priority: | high |
Severity: | normal | Version: | 2.8.0 |
Component: | Emails | Keywords: | has-patch |
Cc: |
Description
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' ), ) ) ) ); }
Attachments (1)
Change History (10)
#2
@
6 years ago
- Keywords has-patch added
- Milestone changed from Awaiting Review to 3.0
- Priority changed from normal to high
- Version set to 2.8.0
Confirmed.
The problem is right now the List-Unsubscribe
email header gets added to any BP email even if that email does not support an unsubscribe link. When this occurs, the header that is added is blank -- List-Unsubscribe: <>
.
I'm guessing Outlook.com is very particular about the List-Unsubscribe
header needing to be complete. If it is not complete, then the email doesn't get received.
01.patch
fixes this by ensuring that we do not add the List-Unsubscribe
header if we do not have a valid unsubscribe link.
I tested this with an Outlook email address and I'm now able to receive the activation email.
@jcrr - Could you test the patch to verify?
#3
@
6 years ago
Tested and working for me too.
Yeah, Microsoft needs a valid unsubscribe link and this patch solve this issue by adding the header only if the unsubscribe link is not empty.
Thanks @r-a-y for changing the priority to high. This patch should be applied as soon as possible so that Outlook.com users can receive the BuddyPress emails.
The original thread: https://buddypress.org/support/topic/buddypress-new-user-activation-emails-resends-not-working/
Thanks for opening a ticket, @jccr!