Ruby 2.1
Don't init mail settings unless we have an ActiveRecord connection