Fixed typo in mkdir
Added extra parameters to send email