Skip to content

Commit fd0e000

Browse files
committed
minor #11054 Added caution-box about special characters (ThomasLandauer)
This PR was merged into the 4.2 branch. Discussion ---------- Added caution-box about special characters Copied caution-box about special characters from https://symfony.com/doc/current/doctrine.html#configuring-the-database Commits ------- 52bc2b9 Update email.rst
2 parents 2bd3244 + 52bc2b9 commit fd0e000

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

email.rst

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,16 @@ environment variable in the ``.env`` file:
3939
# use this to disable email delivery
4040
MAILER_URL=null://localhost
4141
42-
# use this to configure a traditional SMTP server (make sure to URL-encode the
43-
# values of the username and password if they contain non-alphanumeric characters
44-
# such as '+', '@', ':' and '*', which are reserved in URLs)
42+
# use this to configure a traditional SMTP server
4543
MAILER_URL=smtp://localhost:25?encryption=ssl&auth_mode=login&username=&password=
4644
45+
.. caution::
46+
47+
If the username, password or host contain any character considered special in a
48+
URI (such as ``+``, ``@``, ``$``, ``#``, ``/``, ``:``, ``*``, ``!``), you must
49+
encode them. See `RFC 3986`_ for the full list of reserved characters or use the
50+
:phpfunction:`urlencode` function to encode them.
51+
4752
Refer to the :doc:`SwiftMailer configuration reference </reference/configuration/swiftmailer>`
4853
for the detailed explanation of all the available config options.
4954

0 commit comments

Comments
 (0)