HTML newsletters with embedded e-mail addresses are being sent with the 'mailto' component of the links removed. For example, the node which reads:
<a href="mailto:name@some.com">name</a>
appears instead in the resulting message as:
<a href="name@some.com">name</a>

It seems like this would be a result of a replacement function in the module, however the ubiquitous use of mailto links and lack of other reports regarding this issue make that appear less likely.

I use simplenews in tandem with mimemail.

Comments

Thomas Sewell’s picture

I see:

function _sn_mail_url($url) {
  if (preg_match('@://@', $url)) {
    return $url;
  }
  elseif (preg_match('!mailto:!i', $url)) {
    return str_replace('mailto:', '', $url);
  }
  else {
    return url($url, NULL, NULL, 1);
  }
}  

in the code, but I'm not sure about the logic behind it.

I can confirm that the current 4.7.X version also appears to strip out the mailto: in email links, which is pretty annoying.

sutharsan’s picture

Category: support » feature

I will investigate this with the Simplenews 6.x development.

ccdoss’s picture

This will fix it:
Go to mimemail.inc
Look for function _mimemail_url($url)
change return str_replace('mailto:', '', $url); to return $url

I just sent myself some test newsletters to both my Yahoo account and Outlook. It works beautifully in both.

sutharsan’s picture

note this is simplenews, not mimemail.

ccdoss’s picture

Simplenews uses mimemail to send out the newsletter...at least in my version. Therefore, making the above changes in mimemail.inc corrected the problem to my Simplenews newsletter.

sutharsan’s picture

Status: Active » Fixed

yes, and the fact that the problem is caused by mimemail makes it a mimemail issue and not a simplenews issue.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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