Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #6 from tfwright/refactor/email-config

Use config setting for from emails
  • Loading branch information...
commit a257dab84e19540f57a38b6a4b83ee05a8a1a499 2 parents 0534e41 + d6f73d7
@alsmola authored
View
4 app/mailers/nopassword/no_password_emails.rb
@@ -2,8 +2,8 @@ module Nopassword
class NoPasswordEmails < ActionMailer::Base
include Nopassword::ApplicationHelper
- default :from => 'nopassword@alexsmolen.com',
- :return_path => 'nopassword@alexsmolen.com'
+ default :from => Nopassword::Engine.config.from_email,
+ :return_path => Nopassword::Engine.config.return_email
def no_password_email(email, id, time, remote_ip, user_agent, geo, code, host)
@id = id
View
3  lib/nopassword/engine.rb
@@ -35,5 +35,8 @@ class Engine < ::Rails::Engine
:authentication => 'plain',
:enable_starttls_auto => true }
end
+
+ config.from_email = 'nopassword@alexsmolen.com'
+ config.return_email = 'nopassword@alexsmolen.com'
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.