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.comsimplymanas">@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

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