fix(email): don't fail when to
header is invalid when email contains <
This commit is contained in:
parent
d9b6db8ebc
commit
de56eadb43
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ class EmailEvent < ApplicationRecord
|
|||
|
||||
class << self
|
||||
def create_from_message!(message, status:)
|
||||
to = message.to || ["unset"] # no recipients when error occurs *before* setting to: in the mailer
|
||||
to = message.to_addrs || ["unset"] # no recipients when error occurs *before* setting to: in the mailer
|
||||
|
||||
to.each do |recipient|
|
||||
EmailEvent.create!(
|
||||
|
|
Loading…
Reference in a new issue