mailer invitation - code fix