Write some code

Everything except actual mailer