Skip to content

[Mailer] Allow UTF-8 chars in email addresses #13963

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 15, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions mailer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,16 @@ both strings or address objects::
:class:`Symfony\\Component\\Mailer\\Event\\MessageEvent` event to set the
same ``From`` email to all messages.

.. note::

The local part of the address (what goes before the ``@``) can include UTF-8
characters, except for the sender address (to avoid issues with bounced emails).
For example: ``föóbàr@example.com``, ``用户@example.com``, ``θσερ@example.com``, etc.

.. versionadded:: 5.2

Support for UTF-8 characters in email addresses was introduced in Symfony 5.2.

Multiple addresses are defined with the ``addXXX()`` methods::

$email = (new Email())
Expand Down