@@ -12,7 +12,6 @@ integration, CSS inlining, file attachments and a lot more. Get them installed w
12
12
13
13
$ composer require symfony/mailer
14
14
15
-
16
15
.. _mailer-transport-setup :
17
16
18
17
Transport Setup
@@ -96,14 +95,13 @@ native ``native://default`` Mailer uses the sendmail
96
95
Using a 3rd Party Transport
97
96
~~~~~~~~~~~~~~~~~~~~~~~~~~~
98
97
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 :
101
100
102
101
================== ==============================================
103
102
Service Install with
104
103
================== ==============================================
105
104
Amazon SES ``composer require symfony/amazon-mailer ``
106
- Gmail ``composer require symfony/google-mailer ``
107
105
MailChimp ``composer require symfony/mailchimp-mailer ``
108
106
Mailgun ``composer require symfony/mailgun-mailer ``
109
107
Mailjet ``composer require symfony/mailjet-mailer ``
@@ -113,6 +111,14 @@ Sendinblue ``composer require symfony/sendinblue-mailer``
113
111
OhMySMTP ``composer require symfony/oh-my-smtp-mailer ``
114
112
================== ==============================================
115
113
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
+
116
122
Each library includes a :ref: `Symfony Flex recipe <symfony-flex >` that will add
117
123
a configuration example to your ``.env `` file. For example, suppose you want to
118
124
use SendGrid. First, install it:
@@ -1402,6 +1408,17 @@ is sent::
1402
1408
Development & Debugging
1403
1409
-----------------------
1404
1410
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
+
1405
1422
Disabling Delivery
1406
1423
~~~~~~~~~~~~~~~~~~
1407
1424
0 commit comments