How to use mailto command in Anchor Tag in HTML


Hope you all know Html and probably you know how to use the mailto attributes too. Any way for the beginners of HTML I’ll explain little bit on it.

This mailto attribute of Anchor tab let you create an Hyperlinks that will directly launch the default email program on your machine and let you send Email directly to that link. You no need to write the sender Email address. you can send Email to more then one person and also you can add cc, bcc, subjects and even the contents too.

Don’t forget to use %20 for the Blank space and %oA for line break, For explaining mailto command I gonna use one my own Email ID and two example Email ID. Example Email Id’s are example1@gmail.com and example2@gmail.com.
Let’s get started with the mailto syntax.

1) Send mail to Techmarketworld Developers.

<a href = “mailto:freetechmarket@gmail.com”>

2) Send mail to one or more persons, Just use comma to separate the Email address.

<a href=”mailto:freetechmarket@gmail.com,example1@gmail.com”>

3) Send Email to Techmarket with subject as From Visitors and some text in the body of the Email message.

<a href=”mailto:freetechmarket@gmail.com?subject=From%20viewers&body=All%20About%20Technology%oARegards”>

4) Send mail to Techmarketworld but put one Email ID in CC and Another ID in BCC

<a href=”mailto:freetechmarket@gmail.com?cc=example1@gmail.com&bcc=example2@gmail.com”>  

5) Send an Email to Techmarket with subject From Visitors

<a href=”mailto:freetechmarket@gmail.com?subject=From%20Viewers”>

 
 
Advertisements

One thought on “How to use mailto command in Anchor Tag in HTML

Tell us Your Suggestion

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s