New Mail Window–Just a line of code

Very useful info

Manas Ranjan Dash

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:<ahref="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:<ahref="mailto:simplymanas@gmail.com?Subject=From BR">Contact Me</a>

   3:<ahref="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…

View original post 18 more words

Advertisements

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