Change server_settings to smtp_settings to avoid deprecation warning.