I have this link in my html email:

<a href="mailto:enews+unsubscribe@domain.org.au">enews+unsubscribe@domain.org.au</a>

But it gets delivered in the source of the email as:
<a href="mailto:enews%20unsubscribe@domain.org.au" style="text-decoration:underline;">enews+unsubscribe@domain.org.au</a>

And the link doesn't work.



#1 mimemail-1597896-1.patch417 bytessgabe
Members fund testing for the Drupal project. Drupal Association Learn more


joewickert’s picture

Issue summary: View changes

Put html samples in code tags

sgabe’s picture

Title: + symbol being stripped out of mailto: link in body » Plus symbol encoded as space in URLs
Status: Active » Fixed
417 bytes

The plus symbol is not striped but encoded as a space. The following patch fixes the issue in both branches.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Changed actual domain name to domain.org.au

skobe’s picture

I'm using MIME Mail Version 7.x-1.0-beta1 and am getting spaces instead of plus symbols. They're not even % symbols but real spaces. Could it be that the Bug reappeared?

skobe’s picture

Issue summary: View changes
Status: Closed (fixed) » Active
sgabe’s picture

Status: Active » Closed (fixed)

No, this issue is still fixed, see _mimemail_url():

function _mimemail_url($url, $embed_file = NULL) {


  $url = str_replace('+', '%2B', $url);
  return $url;

It should be something else with the same symptom. Please open a new issue and provide steps to reproduce.

skobe’s picture

Yes, I found that line too. But still the problem exists. I figured maybe there is another line of code somewhere which affects the URLs.
But ok, it seems to be an issue of some other module.. I'll keep on searching. thanks for your reply!