Skip to content

Commit 204f636

Browse files
committed
feature #20301 [Mailer][Mime] Support unicode email addresses (javiereguiluz)
This PR was merged into the 7.2 branch. Discussion ---------- [Mailer][Mime] Support unicode email addresses Fixes #20299. Commits ------- 50ab3ee [Mailer] Support unicode email addresses
2 parents e129ba6 + 50ab3ee commit 204f636

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

mailer.rst

Lines changed: 9 additions & 0 deletions
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
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('[email protected]'))
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)