File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -542,6 +542,10 @@ both strings or address objects::
542
542
// email address as a simple string
543
543
->from('fabien@example.com')
544
544
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
+
545
549
// email address as an object
546
550
->from(new Address('fabien@example.com'))
547
551
@@ -556,6 +560,11 @@ both strings or address objects::
556
560
// ...
557
561
;
558
562
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
+
559
568
.. tip ::
560
569
561
570
Instead of calling ``->from() `` *every * time you create a new email, you can
You can’t perform that action at this time.
0 commit comments