added time settings for sending email