first part of mailer works