Skip to content
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
9 changes: 9 additions & 0 deletions mailer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,10 @@ both strings or address objects::
// email address as a simple string
->from('[email protected]')

// non-ASCII characters are supported both in the local part and the domain;
// if the SMTP server doesn't support this feature, you'll see an exception
->from('jânë.dœ@ëxãmplę.com')

// email address as an object
->from(new Address('[email protected]'))

Expand All @@ -556,6 +560,11 @@ both strings or address objects::
// ...
;

.. versionadded:: 7.2

Support for non-ASCII email addresses (e.g. ``jânë.dœ@ëxãmplę.com``)
was introduced in Symfony 7.2.

.. tip::

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