Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you create a mailto: link without the (to) part

Tags:

uri

mailto

How do you properly construct a mailto: link without the part. mailto:[email protected]? I dont want the address and just want whats in the parameters afterward to be filled in through the mailto.

like image 349
Chamilyan Avatar asked Aug 22 '10 08:08

Chamilyan


People also ask

How do I pass HTML formatted body in mailto?

The Mailto format does not support HTML code emails. Outlook was used at 2003, but to become compliant with the mailto: standard they removed that functionality. But you can Use %0D%0A for a line break in HTML body.

How do you create a link that opens an email with a subject line?

To create a link to send email, use <a> tag, with href attribute. The mail to link is added inside the <a> tag. To add a subject, you need to add ? and then include the subject. All this comes inside the <a> tag.


2 Answers

Yes you can

mailto:?body=tisbody&subject=thisbethesubject 
like image 182
Luke Avatar answered Sep 20 '22 08:09

Luke


Did you mean

<a href="mailto:"></a> 
like image 25
Delan Azabani Avatar answered Sep 22 '22 08:09

Delan Azabani