How to make Email and Yahoo Messenger Buttons for your Blog

contact-us“Contact Us” one of the most important part of a website or blog cuz it gives you a chance to interact with the reader of your blog, what they like and and what they want to read. But those days are gone when you give full e-mail address on your blog like “For any queries contact us at [email protected]”. Nobody has time to copy the address, open his mailbox and go to compose mail. And even all of this is not at all required when you can do all this with just one click.Not only this you can also launch the Yahoo messenger window with a single click. All you need to know is the correct codes for both of them.

E-Mails:

mailto:[email protected]

use your e-mail id in place of [email protected]

Implementation:

to use it in html use

<a href=”mailto:[email protected]”>Mail the Author</a>

If you further want to add the subject of e-mail just modify above code with,

<a href=”mailto:[email protected]?subject=This is your subject”>Mail the Author</a>

Change “This is your subject” to whatever you want in subject field.You don not need to add target=”_blank” mailto automatically opens in a new window.

Yahoo Messenger:

For yahoo messenger use the code

ymsgr:sendIM?singh_77s

Replace Singh_77s with your own messenger id.

Implementation:

<a href=”ymsgr:sendIM?singh_77s”>Send us Y im</a>

The html knowledge needed for them is just basic, the main part is the codes.If you need further assistance, ask them using the comments below.


[Editor’s Note: This post is submitted by our guest blogger Sauravjit, the author of musicnlifestyle.

If you, too would like to write for Devils Workshop, please check this. Details about our revenue sharing programs are here.]

If you, too would like to write for Devils Workshop, please check this. Details about our revenue sharing programs are here.]

5 Comments

sahil August 9, 2009

Hi Sauravjit

i am getting the following error on my blog and website when i tried using this : ( please help )

Not Found

The requested URL /”mailto:[email protected] was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

sauravjit August 10, 2009

@Sahil

Please ignore the above two comments as code in these two are not working,

just download a notepad file and use the one line code in it from Here

Ankit Dakwala November 24, 2010

Hi Sauravjit,

I am getting the error can you pls. help me with it
Not Found

The requested URL /”ymsgr:sendIM was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache Server at demo.fourwayssolution.com Port 80

sahil August 10, 2009

@sauravjit

thanks a lot sauravjit, the new codes are working rockingly fine ..:-)

sauravjit August 11, 2009

@Sahil
Your welcome 😀

btw the code is the same, I have just changed the e-mail id with urs 🙂