implemented action mailer

Looks good man, gonna merge now