customizing mozilla

I’d like emacsclient as my mail composer in Mozilla. I wonder how to associate it… From http://www.geocities.com/pratiksolanki/ :

user_pref("network.protocol-handler.external.mailto", true);
user_pref("applications.mailto", "emacsclient");