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

The subject Hi there is not showing up in the email, can someone tell me why ? Heres the code:

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

2 Answers

Hi,

If you are using your code exactly the same as you provided above, there is a space between ? and subject. Removing this space fixed the issue.

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

If there wasn't any space (could just be Treehouse forum formatting). Can you let me know what email client you are using as some of them have different requirements e.g. Exchange for Lotus Notes.

Thanks.

Kashmira Changade
Kashmira Changade
1,492 Points

Very helpful! Thank you so much :)

Omar Jimenez
Omar Jimenez
1,446 Points

Do not forget to add the ? before subject.