@@ -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 ``
@@ -114,6 +112,7 @@ MailPace ``composer require symfony/mailpace-mailer``
114112Infobip ``composer require symfony/infobip-mailer ``
115113================== ==============================================
116114
115+ <<<<<<< HEAD
117116.. versionadded :: 6.2
118117
119118 The ``MailPace `` integration was introduced in Symfony 6.2 (in previous
@@ -122,6 +121,15 @@ Infobip ``composer require symfony/infobip-mailer``
122121.. versionadded :: 6.2
123122
124123 The Infobip integration was introduced in Symfony 6.2.
124+ =======
125+ .. note ::
126+
127+ As a convenience, Symfony also provides support for Gmail (``composer
128+ require symfony/google-mailer ``), but this should not be used in
129+ production. In development, you should probably use an :ref: `email catcher
130+ <mail-catcher>` instead. Note that most supported providers also offer a
131+ free tier.
132+ >>>>>>> 6.1
125133
126134Each library includes a :ref: `Symfony Flex recipe <symfony-flex >` that will add
127135a configuration example to your ``.env `` file. For example, suppose you want to
@@ -1573,6 +1581,17 @@ and their priorities:
15731581 Development & Debugging
15741582-----------------------
15751583
1584+ .. _mail-catcher :
1585+
1586+ Enabling an Email Catcher
1587+ ~~~~~~~~~~~~~~~~~~~~~~~~~
1588+
1589+ When developing locally, it is recommended to use an email catcher. If you have
1590+ enabled Docker support via Symfony recipes, an email catcher is automatically
1591+ configured. In addition, if you are using the :doc: `Symfony local web server
1592+ </setup/symfony_server>`, the mailer DSN is automatically exposed via the
1593+ :ref: `symfony binary Docker integration <symfony-server-docker >`.
1594+
15761595Sending Test Emails
15771596~~~~~~~~~~~~~~~~~~~
15781597
0 commit comments