aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrancis <francis>2008-02-13 08:12:10 +0000
committerfrancis <francis>2008-02-13 08:12:10 +0000
commitdfa29061fd7a528487d4ab1fc72c3ff34d175aeb (patch)
tree0071f8965c9b4fc2f5b951b94e09bbb54b729d55
parente993f2afd96cfbf16c12c8525fd520480c3a931f (diff)
Can't believe ActionMailer defaults to returning errors, rather than throwing
exceptions. This feels like the early 90s again.
-rw-r--r--app/models/application_mailer.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/models/application_mailer.rb b/app/models/application_mailer.rb
index 6ed007557..e504b88fc 100644
--- a/app/models/application_mailer.rb
+++ b/app/models/application_mailer.rb
@@ -4,12 +4,14 @@
# Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: application_mailer.rb,v 1.2 2008-01-14 12:27:56 francis Exp $
+# $Id: application_mailer.rb,v 1.3 2008-02-13 08:12:10 francis Exp $
class ApplicationMailer < ActionMailer::Base
# Include all the functions views get, as emails call similar things.
helper :application
+ self.raise_delivery_errors = true
+
def contact_from_name_and_email
"GovernmentSpy <"+MySociety::Config.get("CONTACT_EMAIL", 'contact@localhost')+">"
end