This is the wrong place to check the environment. We should check when we attempt to use the mailer, not in the mailer itself.