WordPress.org

Ready to get started?Download WordPress

Forums

Subscribe2
[resolved] Return-Path encoding (4 posts)

  1. xl32
    Member
    Posted 1 year ago #

    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' ) {

    http://wordpress.org/extend/plugins/subscribe2/

  2. mattyrob
    Member
    Plugin Contributor

    Posted 1 year ago #

    @xl32,

    Thank looks like a good fix, I'll get that rolled into the next version of Subscribe2. There are a few bug reports in the comments of the function manual page with this function though, did you face any issues?

  3. xl32
    Member
    Posted 1 year ago #

    @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.

  4. mattyrob
    Member
    Plugin Contributor

    Posted 1 year ago #

    @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. :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic