Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

How do i make a link launch email?

Hi guys, Thanks in advance!

Heres my problem:

I have a list item with a link inside which i want to be clicked by the user. Once the list item is clicked i need it to launch the users email software with my email address already filled out in a new email.

How do i do this?

4 Answers

you want it in html ??

Is HTML the correct way to achieve it?

it depends if you are using a server side programming language or not but you can do it in html as well

im not running any server side language. just html and css. How do i do it in html?

(a href="mailto:someone@example.com?Subject=Hello%20again" target="_top" ) Send Mail (/a)

replace the ( for < also it only fire-up if the client has an email set such as outlook, thunderbird, windows mail etc...

or you could set a server side language such as PHP, and create a form and have than filling the form with name, email, subject, content and email, and submit it straight from the site

Thanks :)

what is the target attribute for?

it just specify to open-up in a new full body window

okay thanks a lot!

no problem