-# Set the host and protocol for all action mailer urls
-ActionMailer::Base.default_url_options = { :host => SERVER_URL, :protocol => SERVER_PROTOCOL }
+# Set the host and protocol for all ActionMailer URLs
+ActionMailer::Base.default_url_options = {
+ :host => Settings.server_url,
+ :protocol => Settings.server_protocol
+}