mailer working (tested with gmail and commited with MailCatcher)
fixing time inputs to recover time value