From 4a4deff2a774c086a04979b6016654913a5b6058 Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Mon, 23 Apr 2018 08:59:49 +0200 Subject: [PATCH] Fixed issue #1969: Password reset: No such file or directory @ rb_sysopen - app/views/mailer/application_wrapper.html.erb . --- app/models/channel/email_build.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/channel/email_build.rb b/app/models/channel/email_build.rb index 67e6eae51..86df788f1 100644 --- a/app/models/channel/email_build.rb +++ b/app/models/channel/email_build.rb @@ -152,7 +152,7 @@ Check if string is a complete html document. If not, add head and css styles. return html if html.match?(//i) - html_email_body = File.read('app/views/mailer/application_wrapper.html.erb') + html_email_body = File.read(Rails.root.join('app', 'views', 'mailer', 'application_wrapper.html.erb').to_s) html_email_body.gsub!('###html_email_css_font###', Setting.get('html_email_css_font'))