Hello
This was possible in Kirby 2, right the way you wrote it.
Porting my v2 code to v3, I cannot specify people’s names anymore…
For information, the php error is that email fields from/to/replyTo are matched against V::email, failing as expected.
If you are interested in some advanced means to modify email headers, the outcome of this PR could be of interest (best read from bottom up for the specs that got implemented in 3.3.2)
The to , cc and bcc props now accept key-value arrays with 'email' => 'name' while being backwards-compatible to simple arrays with just email addresses or mixed arrays. Simple strings with just an email are still supported as well. If a user object or an array/a collection of user objects is passed, the email and name are both automatically extracted from the object(s).
The from and replyTo props work a little bit differently as they only support one email address, not an array: The email address can be passed to those props like before and there are new props fromName and replyToName for the names. If a user object is passed to from or replyTo , the names are populated automatically but can also be overridden with different values.
…just dumping this here to keep the link archived for myself …as I’ve been digging it up already twice