modify mail method for html messaging