Skip to content

Commit

Permalink
Email headers changed from string to array() and MIME-Version removed…
Browse files Browse the repository at this point in the history
… - CHANGED
  • Loading branch information
stiofan committed Nov 9, 2016
1 parent 6b0dc1b commit 37d78dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions change_log.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions includes/bp-compliments-notifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 37d78dc

Please sign in to comment.