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
Shaun Kelly
35,560 PointsHow 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
Felipe Barreto
Courses Plus Student 9,604 Pointsyou want it in html ??
Shaun Kelly
35,560 Pointsim not running any server side language. just html and css. How do i do it in html?
Felipe Barreto
Courses Plus Student 9,604 Points(a href="mailto:someone@example.com?Subject=Hello%20again" target="_top" ) Send Mail (/a)
Felipe Barreto
Courses Plus Student 9,604 Pointsreplace the ( for < also it only fire-up if the client has an email set such as outlook, thunderbird, windows mail etc...
Felipe Barreto
Courses Plus Student 9,604 Pointsor 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
Shaun Kelly
35,560 PointsThanks :)
what is the target attribute for?
Felipe Barreto
Courses Plus Student 9,604 Pointsit just specify to open-up in a new full body window
Shaun Kelly
35,560 Pointsokay thanks a lot!
Felipe Barreto
Courses Plus Student 9,604 Pointsno problem
Shaun Kelly
35,560 PointsShaun Kelly
35,560 PointsIs HTML the correct way to achieve it?
Felipe Barreto
Courses Plus Student 9,604 PointsFelipe Barreto
Courses Plus Student 9,604 Pointsit depends if you are using a server side programming language or not but you can do it in html as well