Fixed validate day. Finished sendMail function