Skip to content

Commit 1ff225b

Browse files
aferrandiniweaverryan
authored andcommitted
Better doc when using GMail transport Edit
If your are using Symfony Standard Edition, there is a way to configure the GMail transport from parameters.yml without change the config files.
1 parent f60eac8 commit 1ff225b

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

cookbook/email/gmail.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,22 @@ In the development configuration file, change the ``transport`` setting to
5151
5252
You're done!
5353

54+
.. tip::
55+
56+
If you are using Symfony Standard Edition, configure the parameters at ``parameters.yml``:
57+
58+
.. configuration-block::
59+
60+
.. code-block:: yaml
61+
62+
# app/config/parameters.yml
63+
parameters:
64+
...
65+
mailer_transport: gmail
66+
mailer_host: ~
67+
mailer_user: your_gmail_username
68+
mailer_password: your_gmail_password
69+
5470
.. note::
5571

5672
The ``gmail`` transport is simply a shortcut that uses the ``smtp`` transport

0 commit comments

Comments
 (0)