Finish initial implementation of mailer

This commit wraps up the initial implementation of the site mailer.
Mail server configuration still needs to be added and test mails sent.