Friday, July 24, 2009

WOW 18

WOW 18 - Hyperlink and MailTo

Good Afternoon Friends,
Let me start by wishing you all a very Happy Friday. One of my friend had asked me to share this topic in WOW. So, here it goes.

Hyperlink:
Most of us know how to create a hyperlink. While sending a mail in HTML format, we normally type out the complete address and most of the E-Mail editors recognize them automatically as links to a certain site. e.g., http://danishthomas.blogspot.com.
Instead of typing out the complete url, few of them prefer to make some text as links. e.g., Click here to go to my site.
Depending on the mail editor you use, the option to insert a hyperlink varies. Let me know if any of you have trouble in finding the option in your mail editor.

The html tag which your editor codes for you in the background for the above example will look like this:
<a href = "http://danishthomas.blogspot.com">Click here</a> to go to my site.

MailTo:
Similar to making a clickable hyperlink, almost all of the mail editors allow us an option of sending a mail. I shall discuss the underlying HTML tag used for this. Again depending on your mail client, the option to insert one will vary. I shall attach a few screenshots for this.
Simple MailTo
<a href="mailto:danish12301@gmail.com">Mail me</a>
MailTo with Multiple Recipients
<a href="mailto:danish12301@gmail.com,danish12301@yahoo.com">Mail me</a>
MailTo with Subject
<a href="mailto:danish12301@gmail.com?subject=This is the mail Subject">Mail me</a>
MailTo with a Copy
<a href="mailto:danish12301@gmail.com?cc=danish12301@yahoo.com">Mail me</a>
MailTo with a Blind Copy
<a href="mailto:danish12301@gmail.com?bcc=danish12301@yahoo.com">Mail me</a>
MailTo with message already started in Body
<a href="mailto:danish12301@gmail.com?body=WOW, This is the message Body">Mail me</a>
MailTo with multiline message in Body
<a href="mailto:danish12301@gmail.com?body=WOW<, this is the first para.%0A%0aSecond paragraph.%0A%0AThird Paragraph.">Mail me</a>
NOTE: Use "%0A" for a new line, use "%0A%0A" for a new line preceded by a blank line.

Features may be used in combination
MailTo with Subject, a Recipient, a Copy and the body.
<a href="mailto:danish12301@gmail.com?subject=WOW is cool&cc=danish12301@gmail.com&body=Danish, WOW is really good.%0AThanks, I enjoy it.">
In Microsoft Outlook, doing this is much simpler.


In GMail, it looks like:



Danish :)

No comments: