Adding base email mailer functionality - although mailer appears null