OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Use deliver_now in test mail
Oliver Güntheree0bbcd043b1
diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rbindex 7a99d5da511..3d24a891000 100644--- a/app/controllers/admin_controller.rb+++ b/app/controllers/admin_controller.rb@@ -55,7 +55,7 @@ class AdminController < ApplicationController# Force ActionMailer to raise delivery errors so we can catch itActionMailer::Base.raise_delivery_errors = truebegin- @test = UserMailer.test_mail(User.current).deliver_later+ @test = UserMailer.test_mail(User.current).deliver_nowflash[:notice] = I18n.t(:notice_email_sent, value: User.current.mail)rescue => eflash[:error] = I18n.t(:notice_email_error, value: Redmine::CodesetUtil.replace_invalid_utf8(e.message.dup))