Howto Setup firefox for kmail

Firefox with its default configuration does not integrate well with kde . Now you will see how to setup firefox as default client in the following two cases