end
add_user_to_group(handler_options[:default_group])
unless handler_options[:no_account_notice]
- Mailer.account_information(@user, @user.password).deliver
+ ::Mailer.account_information(@user, @user.password).deliver
end
else
if logger
to = issue.notified_users
cc = issue.notified_watchers - to
issue.each_notification(to + cc) do |users|
- Mailer.issue_add(issue, to & users, cc & users).deliver
+ issue_add(issue, to & users, cc & users).deliver
end
end
cc = journal.notified_watchers - to
journal.each_notification(to + cc) do |users|
issue.each_notification(users) do |users2|
- Mailer.issue_edit(journal, to & users2, cc & users2).deliver
+ issue_edit(journal, to & users2, cc & users2).deliver
end
end
end
# TODO: maybe not the best way to handle this
return if user.admin? && user.login == 'admin' && user.mail == 'admin@example.net'
- Mailer.security_notification(user,
+ security_notification(user,
message: :mail_body_password_updated,
title: :button_change_password,
url: {controller: 'my', action: 'password'}
return unless changes.present?
users = User.active.where(admin: true).to_a
- Mailer.settings_updated(users, changes).deliver
+ settings_updated(users, changes).deliver
end
def test_email(user)