• When shareing a page through e-mail, problems might occur in case the URL of that page contains a querystring with 2 or more parameters. For example trying to share a page with this url: http://www.example.com?p1=val1&p2=val2
    the body of the e-mail will be http://www.example.com?p1=val1.
    As you can see, only the first parameter is kept, and the rest get discarded.
    I digged up your code a little bit, did some research here and there and I came up with a solution that is working well for my case.
    On class.button.php, line 10, i changed the line from $url = 'mailto:?subject='.$title.'&body='.$url;
    to: $url = 'mailto:?subject='.$title.'&body='. urlencode($url);
    so that question marks and ampersands get escaped properly, causing no trouble with the parameters.
    Please take a look in the matter if you have some time.

    Thanks a lot for the wonderfull work you’ve done with this plugin. Really useful and simple.

    http://ww.wp.xz.cn/extend/plugins/social-sharing-toolkit/

Viewing 1 replies (of 1 total)
  • Mario-
    Thank you for posting this. I was having the exact same problem, and when I did as you suggested, the e-mail link is now correct.

Viewing 1 replies (of 1 total)

The topic ‘An issue with e-mail shareing’ is closed to new replies.