A link that looks like this:

<a href="mailto:me@example.com?subject=Message from website">click to email</a>

results in an email that looks like me[at]example[dot]com with the correct subject line being set in the email program.

CommentFileSizeAuthor
#1 allow_query_string-1439344-1.patch1.34 KBJamesK

Comments

JamesK’s picture

Status: Active » Fixed
StatusFileSize
new1.34 KB

Here is the patch against 7.x. Committing.

timwood’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev
Status: Fixed » Patch (to be ported)

Would it be possible to port this patch back to the 6.x version? I just noticed we have the same issue on a link where we add the subject AND body to the link.

<a href="mailto:me@example.com?subject=Subscribe&amp;body=Subscribe">Subscribe</a>

Thanks!

Emmanuel_S’s picture

Thanks for this module.

With some HTML filter (Wysiwyg module with CKEditor 3.6.2.7275 for me on Drupal 7) the email subject should also have an issue which is understandable. In that case the email link case does react on click. Replacing HTML filter with the module HTML Purifier works fine.

Perhaps this information should be put into the help file ?