From 91e8eb49506b61f036e59ade21dd795e7d314ded Mon Sep 17 00:00:00 2001 From: Patrick Gansterer Date: Mon, 11 Jun 2018 15:30:05 +0200 Subject: [PATCH] Add missing brackets to the Message-ID of emails --- app/mailers/mailer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/mailers/mailer.rb b/app/mailers/mailer.rb index 2d721694..918832b1 100644 --- a/app/mailers/mailer.rb +++ b/app/mailers/mailer.rb @@ -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