From 37d78dcc2027533c4ef71785e804eb1195aa6e57 Mon Sep 17 00:00:00 2001 From: stiofan Date: Wed, 9 Nov 2016 13:09:32 +0000 Subject: [PATCH] Email headers changed from string to array() and MIME-Version removed - CHANGED --- change_log.txt | 1 + includes/bp-compliments-notifications.php | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/change_log.txt b/change_log.txt index e8945c5..b131e99 100644 --- a/change_log.txt +++ b/change_log.txt @@ -2,6 +2,7 @@ v1.0.7 Send compliment button can be displayed in /members page - ADDED PHP undefined notices in wordpress admin - FIXED Option added to remove plugin data on plugin delete - ADDED +Email headers changed from string to array() and MIME-Version removed - CHANGED v1.0.6 Notification incorrect from email - FIXED diff --git a/includes/bp-compliments-notifications.php b/includes/bp-compliments-notifications.php index ef3d9d5..5093f2d 100644 --- a/includes/bp-compliments-notifications.php +++ b/includes/bp-compliments-notifications.php @@ -222,9 +222,9 @@ function bp_compliments_new_compliment_email_notification($args = array()) { */ $sitefromEmailName = apply_filters( 'bp_compliments_notification_from_name', $sitefromEmailName ); - $headers = 'MIME-Version: 1.0' . "\r\n"; - $headers .= 'Content-type: text/html; charset=UTF-8' . "\r\n"; - $headers .= 'From: ' . $sitefromEmailName . ' <' . $sitefromEmail . '>' . "\r\n"; + $headers = array(); + $headers[] = 'Content-type: text/html; charset=UTF-8'; + $headers[] = 'From: ' . $sitefromEmailName . ' <' . $sitefromEmail . '>'; // Send the message