Some preparations for email notifications