send email with date check condition