Skip to content

Commit 4b996e9

Browse files
committed
Merge branch '4.4' into 5.4
* 4.4: Tweaks Recommending "strict" mode for users of Symfony Mailer
2 parents 90ff119 + 12c52de commit 4b996e9

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
@@ -132,15 +132,17 @@ This option defines the pattern used to validate the email address. Valid values
132132
to use one of the other modes instead;
133133
* ``html5`` uses the same regular expression as the `HTML5 email input element`_,
134134
making the backend validation consistent with the one provided by browsers;
135-
* ``strict`` uses the `egulias/email-validator`_ library (which you must
136-
install separately) for validation according to `RFC 5322`_.
135+
* ``strict`` validates the address according to `RFC 5322`_ using the
136+
`egulias/email-validator`_ library (which is already installed when using
137+
:doc:`Symfony Mailer </mailer>`; otherwise, you must install it separately).
137138

138139
.. tip::
139140

140141
The possible values of this option are also defined as PHP constants of
141142
:class:`Symfony\\Component\\Validator\\Constraints\\Email`
142143
(e.g. ``Email::VALIDATION_MODE_STRICT``).
143144

145+
144146
The default value used by this option is set in the
145147
:ref:`framework.validation.email_validation_mode <reference-validation-email_validation_mode>`
146148
configuration option.

0 commit comments

Comments
 (0)