Skip to content

Commit 4de67df

Browse files
committed
[Mailer] Allow UTF-8 chars in email addresses
1 parent fcf2eba commit 4de67df

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

mailer.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,16 @@ both strings or address objects::
161161
:class:`Symfony\\Component\\Mailer\\Event\\MessageEvent` event to set the
162162
same ``From`` email to all messages.
163163

164+
.. note::
165+
166+
The local part of the address (what goes before the ``@``) can include UTF-8
167+
characters, except for the sender address (to avoid issues with bounced emails).
168+
For example: ``föóbà[email protected]``, ``用户@example.com``, ``θσερ@example.com``, etc.
169+
170+
.. versionadded:: 5.2
171+
172+
Support for UTF-8 characters in email addresses was introduced in Symfony 5.2.
173+
164174
Multiple addresses are defined with the ``addXXX()`` methods::
165175

166176
$email = (new Email())

0 commit comments

Comments
 (0)