Drop mailer_class and mailer_method attributes; add definition attribute