resolving mailer and conditional issues