Skip to content

fix: Replace placeholders in the CC and BCC addresses (refs #55391) - #3

Merged
dhuf merged 1 commit into
mainfrom
fix/replace-placeholders-in-cc-bcc
Sep 4, 2026
Merged

dhuf merged 1 commit into
mainfrom
fix/replace-placeholders-in-cc-bcc

Conversation

@dhuf

@dhuf dhuf commented Sep 1, 2026

Copy link
Copy Markdown
Member

Action.Email resolves {fieldName} placeholders in the recipient, sender, reply-to and body, but FormService passed carbonCopyAddress and blindCarbonCopyAddress through untouched. A CC configured as "{email}" — the obvious way to send the submitter a copy — reached the mailer literally, so the address was invalid and the mail failed to send.

Both now go through replacePlaceholders like every other address, and an empty string is normalised to null so the mailer is never handed a blank recipient.

Action.Email resolves {fieldName} placeholders in the recipient, sender,
reply-to and body, but FormService passed carbonCopyAddress and
blindCarbonCopyAddress through untouched. A CC configured as "{email}" — the
obvious way to send the submitter a copy — reached the mailer literally, so the
address was invalid and the mail failed to send.

Both now go through replacePlaceholders like every other address, and an empty
string is normalised to null so the mailer is never handed a blank recipient.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@dhuf
dhuf merged commit e170bad into main Sep 4, 2026
0 of 3 checks passed
@dhuf
dhuf deleted the fix/replace-placeholders-in-cc-bcc branch September 4, 2026 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants