/    Sign up×
Community /Pin to ProfileBookmark

html in mailto link

I have a link in a webpage which, when clicked on, opens an email.
like this :
<a href=”mailto:[email protected]?subject=test”>react</a>

But now i want to put a link in the body of the email.
Something like:
<a href=”mailto:[email protected]?subject=test&body=<a href=’fff’>click</a>”>react</a>
But this doesn’t seem to be possible, or is it?

I already tried to HTML encode the body parameter value, but this doesn’t work.

Can anybody help me?

Thanks in advance

to post a comment
HTML

4 Comments(s)

Copy linkTweet thisAlerts:
@JonaOct 20.2004 — [font=trebuchet ms]That would probably depend on the email client; maybe just put the URL and it will automatically become a link.[/font]
Copy linkTweet thisAlerts:
@LeeUOct 20.2004 — Jona is basically correct. Just do it as:

<a href="mailto:[email protected]?subject=test&body=http://www.webdeveloper.com">react</a>

If the e-mail client accepts links then it will appear that way in the body. Be aware though that, on some systems and certain e-mail clients, the mailto link may not work too well.
Copy linkTweet thisAlerts:
@JonaOct 20.2004 — [i]Originally posted by LeeU [/i]

[B]Be aware though that, on some systems and certain e-mail clients, the mailto link may not work too well. [/B][/QUOTE]


[font=trebuchet ms]In particular those with no default email client, who use web-based email (and don't have Firefox/GMail/GMail plugins, such as myself ?). You're best off using a form to send email. What if I'm not at home and can't email you but can't write it down, either? I'll have to remember the site and spend more time on things, such as searching for your address/site again, later. With a form, you can submit the information to the server and you will get the message in your email, so the person who wants to email you doesn't have to use an email client that isn't his and can contact you from anywhere providing he has access to the Web.[/font]
Copy linkTweet thisAlerts:
@FangOct 20.2004 — The & should be &amp;amp;
×

Success!

Help @haastnooit spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...