diff --git a/app/models/channel/email_build.rb b/app/models/channel/email_build.rb index e6c1bbc7e..bf43604e5 100644 --- a/app/models/channel/email_build.rb +++ b/app/models/channel/email_build.rb @@ -48,9 +48,9 @@ module Channel::EmailBuild content_type 'text/html; charset=UTF-8' # complete check - attr[:body] = Channel::EmailBuild.html_complete_check( attr[:body] ) + html_document = Channel::EmailBuild.html_complete_check( attr[:body] ) - body attr[:body] + body html_document end # generate plain part