HTML
CSS
JavaScript
jQuery
PHP
SQL
WordPress
HTML Tutorials

Overview

An HTML hyperlink can be used to create a link to an email address.

				
					<a href="mailto:name@example.com">Send email</a>
				
			

Default Subject and Body

You can specify a default email subject and email body along with your email address. Use %20 to represent a space in the string.

Default subject:

				
					<a href="mailto:name@example.com?subject=Product%20Inquiry">Send email</a>
				
			

Default subject and body:

				
					<a href="mailto:name@example.com?subject=Product%20Inquiry&body=I%20just%20wanted%20to%20say%20I%20love%20your%20product.">Send email</a>
				
			

Default CC and BCC

A CC and BCC can also be added to the link.

Default subject, CC, BCC,  and body:

				
					<a href="mailto:name@example.com?cc=name2@example.com&bcc=name3@example.com&subject=Product%20Inquiry&body=I%20just%20wanted%20to%20say%20I%20love%20your%20product.">Send email</a>
				
			

We’d like to acknowledge that we learned a great deal of our coding from W3Schools and TutorialsPoint, borrowing heavily from their teaching process and excellent code examples. We highly recommend both sites to deepen your experience, and further your coding journey. We’re just hitting the basics here at 1SMARTchicken.

HTML
CSS
JavaScript
jQuery
PHP
SQL
WordPress

Why 1SMARTchicken?

This site was built and is maintained to benefit my autistic son.
See More →

My Son's Name is Johnny

He was diagnosed as autistic quite late, at age four...
His story

Buy Me a Coffee

Thanks for your support!

Feedback

If you see an error on the page or the code itself is incorrect or incomplete, or just plain wrong, please let us know. We’re always learning. NOTE: we do not sell your information and will not send you spam emails.