If the application is run without the mailer env variables not set, the mailer will throw exceptions, with no way to resend the appropropriate emails.
I think the best way to solves this problem is to disable all features that require the mailer if the vars are not set.