fixed typo error.  added some modification for mail interval.