If you’ve ever written a website in HTML, you are probably familiar with the MailTo-command, used to automatically start a new email message when the link is clicked. However, you can do so much more with the command. Here are some examples:
 

  • Address message to multiple recipients
  • Add entry in the “Subject” field
  • Add entry in the “Copy To” or “CC” field
  • Add entry in the “Blind Copy To” or “BCC” field
  • Add entry in the “Body” field

 
Now, I’m sure you’re wondering how exactly we get the code to do this. Here’s how (click the link to see the effect):
 

 
Of course, you can also combine the effect:
 

 | Posted by razumny | Categories: E-mail, HTML, code examples | Tagged: , , , |

I use GMail a lot. I also send a lot of emails, many of those originating from mailto:-links. Hence, it is practical to have mailto:-links open in GMail.
 
This is quickly and simply achieved by going to Tools, Options, Applications. In the search-field, simply enter mailto, then use the Action-field to select GMail, Yahoo Mail or something else, like so:
 

 
Some installations of Firefox do not have the GMail-alternative. This is simply fixed. Open a new tab, then enter about:config in the address-bar. Into the filter enter
gecko.handlerService.AllowRegisterFromDifferentHost, then doubleclick the value so that it is set to true. Then copy/paste the following piece of Javascript to your Addressbar: javascript:window.navigator.registerProtocolHandler("mailto", "https://mail.google.com/mail/?extsrc=mailto&url=%s","Gmail"). When asked whether you want to add GMail as an application, answer “yes”.

 | Posted by razumny | Categories: Firefox, gmail | Tagged: , , |