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

<a href="mailto: blablabla@XXX.com"> </a> Not working. Any one with answers?

I have tried the creation of the email link but unfortunately, it's not working. I have read the two questions here and tried the suggested solutions but it wouldn't work.

Anyone with the know-how can please help.

3 Answers

Seth Barton
Seth Barton
1,275 Points

Hey There!

I'm not sure if this totally breaks the code or not, but I'd get rid of the space between "mailto:" and "blablabla". I know the coding challenge won't accept it with a space there. Also, make sure you have the text you want to click on to start the email in-between the anchor tags.

-Seth

Hey Lucky Chukwuladi Masi,

Don't worry it's very easy to solve, at first I made your same mistake. You should write <a href="mailto: blablabla@XXX.com"> blablabla@XXX.com </a>. You've forgotten the link for the email. Let me know if it works.

<a href="mailto:masichukwuladi@gmail.com?subject=Enlisting%20Information ">masichukwuladi@gamil.com</a></p> @ Alessandro Pizzini, the codes above is the reference code. Or, do you think I have to set up any stuff remotely from my PC?

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