Reputation: 19675
I have a mailto link in my HTML. The HREF is
<a href="mailto:?to=&body=AAA,&subject=BBB">MAIL</a>
In other words, I am specifying body and subject, but not recipient.
In Chrome on Ubuntu, clicking this produces an dialog with a error
Unable to detect the URI-scheme of "mailto:?body.....
Note that Firefox opens Thunderbird correctly for the same link.
How do I code this link so it works?
Chrome 34.0.1847.137 Ubuntu 13.10
Upvotes: 26
Views: 17507
Reputation: 1790
If I understand the definition right this should work:
<a href="mailto:?to=&body=AAA,&subject=BBB">MAIL</a>
At least it does work in Chrome 36 on OSX…
RFC 6068: The 'mailto' URI Scheme
Upvotes: 44
Reputation: 1006
What about
<a href="mailto:?to=%20&body=AAA,&subject=BBB">mail link</a>
Upvotes: 1
Reputation: 26066
Try adding a space between mailto:
and ?body=AAA,&subject=BBB
like this:
<a href="mailto: ?body=AAA,&subject=BBB">mail link</a>
Or even adding the space as Unicode like this:
<a href="mailto:%20?body=AAA,&subject=BBB">mail link</a>
Upvotes: 6