auth
auth copied to clipboard
Fix issue where if the headers contain From it overrides the Custom SMTP From
What kind of change does this PR introduce?
Under some circumstances headers may be passed that override the From field. This can cause emails to come from application users instead of from the Custom SMTP Sender details and will often result in email delivery failures since most SMTPs only accept emails from approved senders.
What is the current behavior?
https://github.com/supabase/auth/issues/1957
What is the new behavior?
Updates via headers to From are ignored, the correct Custom SMTP Sender details are preserved.