@@ -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:
@@ -1402,6 +1408,17 @@ is sent::
14021408Development & Debugging
14031409-----------------------
14041410
1411+ .. _mail-catcher :
1412+
1413+ Enabling an Email Catcher
1414+ ~~~~~~~~~~~~~~~~~~~~~~~~~
1415+
1416+ When developing locally, it is recommended to use an email catcher. If you have
1417+ enabled Docker support via Symfony recipes, an email catcher is automatically
1418+ configured. In addition, if you are using the :doc: `Symfony local web server
1419+ </setup/symfony_server>`, the mailer DSN is automatically exposed via the
1420+ :ref: `symfony binary Docker integration <symfony-server-docker >`.
1421+
14051422Disabling Delivery
14061423~~~~~~~~~~~~~~~~~~
14071424
0 commit comments