Add missing brackets to the Message-ID of emails

This commit is contained in:
Patrick Gansterer 2018-06-11 15:30:05 +02:00
parent 787af8d501
commit 91e8eb4950

View file

@ -93,7 +93,7 @@ class Mailer < ActionMailer::Base
end
def mail(args)
args[:message_id] ||= "#{Mail.random_tag}@#{default_url_options[:host]}"
args[:message_id] ||= "<#{Mail.random_tag}@#{default_url_options[:host]}>"
args[:subject] = "[#{FoodsoftConfig[:name]}] #{args[:subject]}"
if args[:from].is_a? User