added mailer functionality and updated .gitignore
.gitignore is now working