Skip to content

Commit 878d6d4

Browse files
committed
minor #14859 [Mailer] Update mailer.rst (cadjou)
This PR was submitted for the 5.2 branch but it was squashed and merged into the 4.4 branch instead. Discussion ---------- [Mailer] Update mailer.rst Add Tips for special characteres for user and pass <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `5.x` for features of unreleased versions). --> Commits ------- 5d8a9e2 [Mailer] Update mailer.rst
2 parents 794de34 + 5d8a9e2 commit 878d6d4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

mailer.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,13 @@ over SMTP by configuring the DSN in your ``.env`` file (the ``user``,
6565
]);
6666
};
6767
68+
.. caution::
69+
70+
If the username, password or host contain any character considered special in a
71+
URI (such as ``+``, ``@``, ``$``, ``#``, ``/``, ``:``, ``*``, ``!``), you must
72+
encode them. See `RFC 3986`_ for the full list of reserved characters or use the
73+
:phpfunction:`urlencode` function to encode them.
74+
6875
.. caution::
6976

7077
If you are migrating from Swiftmailer (and the Swiftmailer bundle), be

0 commit comments

Comments
 (0)