Skip to content

Commit 30036c3

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: Recommending "strict" mode for users of Symfony Mailer
2 parents 63b7af6 + 4b996e9 commit 30036c3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

reference/constraints/Email.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,15 +128,17 @@ This option defines the pattern used to validate the email address. Valid values
128128
to use one of the other modes instead;
129129
* ``html5`` uses the same regular expression as the `HTML5 email input element`_,
130130
making the backend validation consistent with the one provided by browsers;
131-
* ``strict`` uses the `egulias/email-validator`_ library (which you must
132-
install separately) for validation according to `RFC 5322`_.
131+
* ``strict`` validates the address according to `RFC 5322`_ using the
132+
`egulias/email-validator`_ library (which is already installed when using
133+
:doc:`Symfony Mailer </mailer>`; otherwise, you must install it separately).
133134

134135
.. tip::
135136

136137
The possible values of this option are also defined as PHP constants of
137138
:class:`Symfony\\Component\\Validator\\Constraints\\Email`
138139
(e.g. ``Email::VALIDATION_MODE_STRICT``).
139140

141+
140142
The default value used by this option is set in the
141143
:ref:`framework.validation.email_validation_mode <reference-validation-email_validation_mode>`
142144
configuration option.

0 commit comments

Comments
 (0)