Bug description
{{ config:mail:from:address }} doesn't work in recipient field nor cc, bcc, reply-to in form emails
but works only in sender field
How to reproduce
- create a form in the admin panel
- in the form configuration page, at the bottom click on Add Email
- in the recipient field write: {{ config:mail:from:address }} to indicate that we want to mail the laravel default from email
- in the other fields choose whatever suits you
- navigate to the form link and fill the form then send it
- you should be able to see an error like:
An email must have a "To", "Cc", or "Bcc" header
Logs
No response
Environment
EnvironmentApplication Name: Mehdi MekouarLaravel Version: 11.16.0PHP Version: 8.2.12Composer Version: 2.7.6Environment: localDebug Mode: ENABLEDURL: localhost:8000Maintenance Mode: OFFTimezone: UTCLocale: enCacheConfig: NOT CACHEDEvents: NOT CACHEDRoutes: NOT CACHEDViews: CACHEDDriversBroadcasting: logCache: fileDatabase: sqliteLogs: stack / singleMail: logQueue: syncSession: fileStatamicAddons: 0Sites: 1Stache Watcher: DisabledStatic Caching: DisabledVersion: 5.20.0 Solo
Installation
Fresh statamic/statamic site via CLI
Additional details
No response
Bug description
{{ config:mail:from:address }} doesn't work in recipient field nor cc, bcc, reply-to in form emails
but works only in sender field
How to reproduce
An email must have a "To", "Cc", or "Bcc" headerLogs
No response
Environment
Installation
Fresh statamic/statamic site via CLI
Additional details
No response