Added html mail
Added template support