Implemented multithreading for Mailer.java so that sending emails

This pull request fixes #107