Contact form: sender name in from header

I’m using the form controller from Email contact form | Kirby CMS and whenever I receive the email the from header appears as “test@example.com <test@example.com>”. Is there a way to have the sender name show up, along with the email address? I’ve tried:

try {
	$kirby->email([
		…
		'from' => 'John Doe <test@example.com>',
		…

But then I’m getting an error message that the form can’t be sent.

Oh, thanks; somehow I missed that guide.