passing in hash to correctly send testmail