New Mail Window–Just a line of code

In most of the website you might have noticed, the contact us or contact me link at the end. Once you click that it will open a new mail window of your default mail client and it will have the mention subject and a mail id in the to box. So we can achieve that with the below line of code.

   1: <a href="mailto:simplymanas@gmail.com?Subject=query">Contact Me</a>

 

in HTML5 I wrote this in the footer section in this way.

 

   1: <footer>&copy; simplymanas 2013

   2: <a href="mailto:simplymanas@gmail.com?Subject=From BR">Contact Me</a>

   3: <a href="http:\\www.twitter.com\simplymanas">@simplymanas</a>

   4: </footer>

 

and it will appear like this

© simplymanas 2013

Contact Me @simplymanas

 

This article was also published by me in

Beyond Relational

Quote of the Day:

No person was ever honored for what he received. Honor has been the reward for what he gave.

–John Calvin Coolidge

About these ads

One thought on “New Mail Window–Just a line of code

Leave a Reply

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