adds mailer to send email everytime a post is made