Mailer: updated notemailer calls to new api