fix(email): don't fail when to header is invalid when email contains <

This commit is contained in:
Colin Darie 2024-03-11 13:11:25 +01:00
parent d9b6db8ebc
commit de56eadb43

View file

@ -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!(