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

HTML HTML Basics Going Further with HTML Link to Email

Joseph Sockey
Joseph Sockey
1,374 Points

Email link not working?

I'm not sure what I'm doing wrong with my code but I never got the instant email pop up. <a href="mailto:coolvrexperience@gmail.com? subject=Hi%20There!">coolvrexperience@gmail.com</a>

2 Answers

Sebastian Speydel
Sebastian Speydel
1,745 Points

JosepH

Try to leave out the space between the question mark and the word "subject". I have marked with an X where you should remove the space in your code.

href="mailto:coolvrexperience@gmail.com?XXXXXsubject=Hi%20There!">coolvrexperience@gmail.com</a>

I hope this will help!.

Greetings

Jacob Smith
Jacob Smith
10,926 Points

For those using the Mail Application. I was having the same issue and couldn't figure out why. 1) I opened Mail 2) Selected preferences 3) Selected the General tab 4) Default email reader: Mail

*Make sure Mail is selected if you are wanting the click event to open a new email in Mail