added question answered mail function with test