Account information can now be sent to the user when creating an account.
ActionMailer logger set to nil for production environment to disable email contents output in production.log git-svn-id: http://redmine.rubyforge.org/svn/trunk@546 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
f12315075f
commit
f04225321c
17 files changed
+43
-2
No files matched your search
@@ -17,6 +17,14 @@
|
||||
|
||||
class Mailer < ActionMailer::Base
|
||||
helper IssuesHelper
|
||||
|
||||
def account_information(user, password)
|
||||
set_language_if_valid user.language
|
||||
recipients user.mail
|
||||
from Setting.mail_from
|
||||
subject l(:mail_subject_register)
|
||||
body :user => user, :password => password
|
||||
end
|
||||
|
||||
def issue_add(issue)
|
||||
set_language_if_valid(Setting.default_language)
|
||||
|
||||
Reference in new issue
Block a user