Fixing issue with bad smtp settings in environment config