Skip to content

s2_email_headers

  • Subscribe2
  • Updated Nov 23, 2023
  • 1 min read

This hook allows you to alter or remove the email headers subscribe2 uses at the time of sending. Headers include ‘From’, ‘Reply-To’, ‘Return-path’, ‘Precedence’ and ‘Content-Type’. If your hosting provider does not allow use of the ‘Reply-To’ header you an use code like this:

function my_s2_headers($header) {
unset($header['Reply-To']);
return $header;
}
add_filter('s2_email_headers', 'my_s2_headers');

Last updated on

Filed under Hooks, API & Customization

Still stuck?

Our support team can walk you through it.