Return-Path encoding
-
Thanks for the great plugin!
I faced another problem on my blog with Subscribe2. It does not correctly encodes Return-Path and Reply-To headers. That leads to something like this in mail client.
Patch I use on my blog is below:
--- class-s2-core.php 2013-02-19 00:07:50.000000000 -0800 +++ class-s2-core-fixed.php 2013-03-02 17:58:58.000000000 -0800 @@ -323,8 +323,8 @@ } } - $header['From'] = $this->myname . " <" . $this->myemail . ">"; - $header['Reply-To'] = $this->myname . " <" . $this->myemail . ">"; + $header['From'] = mb_encode_mimeheader($this->myname, 'UTF-8', 'Q') . " <" . $this->myemail . ">"; + $header['Reply-To'] = mb_encode_mimeheader($this->myname, 'UTF-8', 'Q') . " <" . $this->myemail . ">"; $header['Return-path'] = "<" . $this->myemail . ">"; $header['Precedence'] = "list\nList-Id: " . html_entity_decode(get_option('blogname'), ENT_QUOTES) . ""; if ( $type == 'html' ) {
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Return-Path encoding’ is closed to new replies.