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'))