@@ -12,7 +12,6 @@ integration, CSS inlining, file attachments and a lot more. Get them installed w
1212
1313 $ composer require symfony/mailer
1414
15-
1615 .. _mailer-transport-setup :
1716
1817Transport Setup
@@ -96,14 +95,13 @@ native ``native://default`` Mailer uses the sendmail
9695Using a 3rd Party Transport
9796~~~~~~~~~~~~~~~~~~~~~~~~~~~
9897
99- Instead of using your own SMTP server or sendmail binary, you can send emails via a 3rd party
100- provider. Mailer supports several - install whichever you want :
98+ Instead of using your own SMTP server or sendmail binary, you can send emails
99+ via a third-party provider :
101100
102101================== ==============================================
103102Service Install with
104103================== ==============================================
105104Amazon SES ``composer require symfony/amazon-mailer ``
106- Gmail ``composer require symfony/google-mailer ``
107105MailChimp ``composer require symfony/mailchimp-mailer ``
108106Mailgun ``composer require symfony/mailgun-mailer ``
109107Mailjet ``composer require symfony/mailjet-mailer ``
@@ -113,6 +111,14 @@ Sendinblue ``composer require symfony/sendinblue-mailer``
113111OhMySMTP ``composer require symfony/oh-my-smtp-mailer ``
114112================== ==============================================
115113
114+ .. note ::
115+
116+ As a convenience, Symfony also provides support for Gmail (``composer
117+ require symfony/google-mailer ``), but this should not be used in
118+ production. In development, you should probably use an :ref: `email catcher
119+ <mail-catcher>` instead. Note that most supported providers also offer a
120+ free tier.
121+
116122Each library includes a :ref: `Symfony Flex recipe <symfony-flex >` that will add
117123a configuration example to your ``.env `` file. For example, suppose you want to
118124use SendGrid. First, install it:
@@ -1322,6 +1328,17 @@ is sent::
13221328Development & Debugging
13231329-----------------------
13241330
1331+ .. _mail-catcher :
1332+
1333+ Enabling an Email Catcher
1334+ ~~~~~~~~~~~~~~~~~~~~~~~~~
1335+
1336+ When developing locally, it is recommended to use an email catcher. If you have
1337+ enabled Docker support via Symfony recipes, an email catcher is automatically
1338+ configured. In addition, if you are using the :doc: `Symfony local web server
1339+ </setup/symfony_server>`, the mailer DSN is automatically exposed via the
1340+ :ref: `symfony binary Docker integration <symfony-server-docker >`.
1341+
13251342Disabling Delivery
13261343~~~~~~~~~~~~~~~~~~
13271344
0 commit comments