From 763900f36713e91a0a9f4eb0bdd3163226452740 Mon Sep 17 00:00:00 2001 From: germanolucas Date: Wed, 19 Sep 2018 15:55:45 -0300 Subject: [PATCH] Update mailer_patch.rb There is a problem, at least in Redmine 3.4. I can't send e-mails in html format using html_body tag. I had to do a little change in the mailer_patch.rb file. --- lib/redmine_custom_workflows/mailer_patch.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/redmine_custom_workflows/mailer_patch.rb b/lib/redmine_custom_workflows/mailer_patch.rb index 863ed23..29524b3 100644 --- a/lib/redmine_custom_workflows/mailer_patch.rb +++ b/lib/redmine_custom_workflows/mailer_patch.rb @@ -18,7 +18,7 @@ module RedmineCustomWorkflows if text_body || html_body mail headers do |format| format.text { render :text => text_body } if text_body - format.html { render :html => html_body } if html_body + format.html { render :text => html_body } if html_body end elsif template_name template_params.each { |k,v| instance_variable_set("@#{k}", v) }