Title: Return-Path encoding
Last modified: August 20, 2016

---

# Return-Path encoding

 *  Resolved [xl32](https://wordpress.org/support/users/xl32/)
 * (@xl32)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/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](http://grabilla.com/03302-10c4b886-4d1f-4176-9139-7448d679708d.png)
   in mail client.
 * Patch I use on [my blog](http://zavedu.org/) 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' ) {
       ```
   
 * [http://wordpress.org/extend/plugins/subscribe2/](http://wordpress.org/extend/plugins/subscribe2/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Matt Robinson](https://wordpress.org/support/users/mattyrob/)
 * (@mattyrob)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/return-path-encoding/#post-3522337)
 * [@xl32](https://wordpress.org/support/users/xl32/),
 * Thank looks like a good fix, I’ll get that rolled into the next version of Subscribe2.
   There are a [few bug reports](http://php.net/manual/en/function.mb-encode-mimeheader.php)
   in the comments of the function manual page with this function though, did you
   face any issues?
 *  Thread Starter [xl32](https://wordpress.org/support/users/xl32/)
 * (@xl32)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/return-path-encoding/#post-3522339)
 * [@mattyrob](https://wordpress.org/support/users/mattyrob/),
 * it works for me like a charm. However, I didn’t tested it with korean charsets.
   Please note the bugs those people refer to are closed in PHP 4.X in 2003 and 
   2005.
 *  [Matt Robinson](https://wordpress.org/support/users/mattyrob/)
 * (@mattyrob)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/return-path-encoding/#post-3522343)
 * [@xl32](https://wordpress.org/support/users/xl32/),
 * I’ve applied the patch on my sites and tested, no issues are apparent to me so
   I’ll roll this into the next version and we’ll see what happens. Thanks for your
   input. 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Return-Path encoding’ is closed to new replies.

 * ![](https://ps.w.org/subscribe2/assets/icon-256x256.png?rev=2318630)
 * [Subscribe2 - Form, Email Subscribers & Newsletters](https://wordpress.org/plugins/subscribe2/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/subscribe2/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/subscribe2/)
 * [Active Topics](https://wordpress.org/support/plugin/subscribe2/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/subscribe2/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/subscribe2/reviews/)

## Tags

 * [encoding](https://wordpress.org/support/topic-tag/encoding/)
 * [mime](https://wordpress.org/support/topic-tag/mime/)

 * 3 replies
 * 2 participants
 * Last reply from: [Matt Robinson](https://wordpress.org/support/users/mattyrob/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/return-path-encoding/#post-3522343)
 * Status: resolved