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

mailto not working

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

I even tried putting my personal email and it still didn't work.

6 Answers

I tested the code and it does work as written, you may have to configure your computer's email client. The space in the subject doesn't technically effect the link, it only effects the HiThere! vs Hi There

There is nothing wrong with the code and also you need a mail client app installed on your system for it to work

Hey Jennine Copp,

There should be no space before %, you can remove it.

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

Hope this helps!

I tried removing the space and still not working

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

I had the same problem, but there was a space between the ? and subject I removed it, saved, and success.

Nikolaos Vasileiadis
seal-mask
.a{fill-rule:evenodd;}techdegree
Nikolaos Vasileiadis
Front End Web Development Techdegree Student 4,720 Points

In Windows, select Start and type Default apps.

Select Default apps from the suggestions.

Find the app that you want to use for emails. (eg. Outlook.)

Click on it. Then, you can see a MailTo section. Click on that and choose your default app.