Skip to content

Commit 50ab3ee

Browse files
committed
[Mailer] Support unicode email addresses
1 parent 795148e commit 50ab3ee

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

mailer.rst

+9
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,10 @@ both strings or address objects::
542542
// email address as a simple string
543543
->from('fabien@example.com')
544544

545+
// non-ASCII characters are supported both in the local part and the domain;
546+
// if the SMTP server doesn't support this feature, you'll see an exception
547+
->from('jânë.dœ@ëxãmplę.com')
548+
545549
// email address as an object
546550
->from(new Address('fabien@example.com'))
547551

@@ -556,6 +560,11 @@ both strings or address objects::
556560
// ...
557561
;
558562

563+
.. versionadded:: 7.2
564+
565+
Support for non-ASCII email addresses (e.g. ``jânë.dœ@ëxãmplę.com``)
566+
was introduced in Symfony 7.2.
567+
559568
.. tip::
560569

561570
Instead of calling ``->from()`` *every* time you create a new email, you can

0 commit comments

Comments
 (0)