Skip to content

Commit e1da71c

Browse files
nspykejaviereguiluz
authored andcommitted
Added a caution about encoding DSN credentials
1 parent ce51ec5 commit e1da71c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

components/mailer.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,11 @@ For third-party providers, refer to the following table:
102102
Sendgrid sendgrid+smtp://apikey:KEY@default n/a sendgrid+api://KEY@default
103103
==================== ========================================== =========================================== ========================================
104104

105+
.. caution::
106+
107+
If your credentials contain special characters, they must be provided to the DSN in URL encoded form.
108+
e.g. The DSN ``ses+smtp://ABC1234:abc+12/345@default`` should be configured as ``ses+smtp://ABC1234:abc%2B12%2F345@default``
109+
105110
Instead of choosing a specific protocol, you can also let Symfony pick the
106111
best one by omitting it from the scheme: for instance, ``mailgun://KEY:DOMAIN@default``
107112
is equivalent to ``mailgun+https://KEY:DOMAIN@default``.

0 commit comments

Comments
 (0)