fixing mailer delivery method