@@ -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 ``
@@ -114,6 +112,7 @@ MailPace ``composer require symfony/mailpace-mailer``
114
112
Infobip ``composer require symfony/infobip-mailer ``
115
113
================== ==============================================
116
114
115
+ <<<<<<< HEAD
117
116
.. versionadded :: 6.2
118
117
119
118
The ``MailPace `` integration was introduced in Symfony 6.2 (in previous
@@ -122,6 +121,15 @@ Infobip ``composer require symfony/infobip-mailer``
122
121
.. versionadded :: 6.2
123
122
124
123
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
125
133
126
134
Each library includes a :ref: `Symfony Flex recipe <symfony-flex >` that will add
127
135
a configuration example to your ``.env `` file. For example, suppose you want to
@@ -1573,6 +1581,17 @@ and their priorities:
1573
1581
Development & Debugging
1574
1582
-----------------------
1575
1583
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
+
1576
1595
Sending Test Emails
1577
1596
~~~~~~~~~~~~~~~~~~~
1578
1597
0 commit comments