Skip to content

Commit

Permalink
Merge pull request #617 from bramley/list-unsubscribe-post
Browse files Browse the repository at this point in the history
Include List-Unsubscribe-Post header to indicate one-click functionality
  • Loading branch information
suelaP authored Dec 6, 2019
2 parents 4cf9016 + b0ac8de commit a0f3f59
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions public_html/lists/admin/sendemaillib.php
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,7 @@ function sendEmail($messageid, $email, $hash, $htmlpref = 0, $rssitems = array()
}
$mail->addCustomHeader('List-Help: <'.$text['preferences'].'>');
$mail->addCustomHeader('List-Unsubscribe: <'.$text['jumpoffurl'].'>');
$mail->addCustomHeader('List-Unsubscribe-Post: List-Unsubscribe=One-Click');
$mail->addCustomHeader('List-Subscribe: <'.getConfig('subscribeurl').'>');
$mail->addCustomHeader('List-Owner: <mailto:'.getConfig('admin_address').'>');

Expand Down

0 comments on commit a0f3f59

Please sign in to comment.