html report creation and send by mail