shouldn't it be ```factory.get_mail_class()```?