You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If no framework.mailer.headers.From parameter is set, and no from option is given in command line, the command should fail, indicating incomplete configuration.
Forcing a fake From header hides this information.
How to reproduce
comment out framework.mailer.headers.From in mailer.yaml
send a test email with bin/console mailer:test without using --from option
received email contains a From: from@example.org header
Possible Solution
remove default value from from input option
set $message->from() only if from input option is given in command line
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Symfony version(s) affected
7.0.7
Description
If no
framework.mailer.headers.From
parameter is set, and nofrom
option is given in command line, the command should fail, indicating incomplete configuration.Forcing a fake
From
header hides this information.How to reproduce
comment out
framework.mailer.headers.From
in mailer.yamlsend a test email with
bin/console mailer:test
without using--from
optionreceived email contains a
From: from@example.org
headerPossible Solution
remove default value from
from
input optionset $message->from() only if
from
input option is given in command lineAdditional Context
No response
The text was updated successfully, but these errors were encountered: