Implemented sending email, added debug messages, bugfixes
Added ability to put placeholders in email subject