add mailing function and date log