Skip to content

Commit 6de312e

Browse files
committed
Merge branch '4.4' into 5.0
* 4.4: Added a caution about encoding DSN credentials
2 parents 9e7858b + 32f67ca commit 6de312e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

components/mailer.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@ For third-party providers, refer to the following table:
9898
Sendgrid sendgrid+smtp://apikey:KEY@default n/a sendgrid+api://KEY@default
9999
==================== ========================================== =========================================== ========================================
100100

101+
.. caution::
102+
103+
If your credentials contain special characters, you must URL-encode them.
104+
For example, the DSN ``ses+smtp://ABC1234:abc+12/345@default`` should be
105+
configured as ``ses+smtp://ABC1234:abc%2B12%2F345@default``
106+
101107
Instead of choosing a specific protocol, you can also let Symfony pick the
102108
best one by omitting it from the scheme: for instance, ``mailgun://KEY:DOMAIN@default``
103109
is equivalent to ``mailgun+https://KEY:DOMAIN@default``.

0 commit comments

Comments
 (0)