forked from symfony/symfony-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Conflicts: book/configuration.rst
- Loading branch information
Showing
18 changed files
with
415 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -141,12 +141,9 @@ by adding the ``delivery_whitelist`` option: | |
swiftmailer: | ||
delivery_address: [email protected] | ||
delivery_whitelist: | ||
# all email addresses matching this regex will *not* be | ||
# redirected to [email protected] | ||
# all email addresses matching these regexes will be delivered | ||
# like normal, as well as being sent to [email protected] | ||
- '/@specialdomain\.com$/' | ||
# all emails sent to [email protected] won't | ||
# be redirected to [email protected] too | ||
- '/^admin@mydomain\.com$/' | ||
.. code-block:: xml | ||
|
@@ -162,10 +159,9 @@ by adding the ``delivery_whitelist`` option: | |
http://symfony.com/schema/dic/swiftmailer http://symfony.com/schema/dic/swiftmailer/swiftmailer-1.0.xsd"> | ||
<swiftmailer:config delivery-address="[email protected]"> | ||
<!-- all email addresses matching this regex will *not* be redirected to [email protected] --> | ||
<!-- all email addresses matching these regexes will be delivered | ||
like normal, as well as being sent to [email protected] --> | ||
<swiftmailer:delivery-whitelist-pattern>/@specialdomain\.com$/</swiftmailer:delivery-whitelist-pattern> | ||
<!-- all emails sent to [email protected] won't be redirected to [email protected] too --> | ||
<swiftmailer:delivery-whitelist-pattern>/^admin@mydomain\.com$/</swiftmailer:delivery-whitelist-pattern> | ||
</swiftmailer:config> | ||
</container> | ||
|
@@ -176,19 +172,16 @@ by adding the ``delivery_whitelist`` option: | |
$container->loadFromExtension('swiftmailer', array( | ||
'delivery_address' => "[email protected]", | ||
'delivery_whitelist' => array( | ||
// all email addresses matching this regex will *not* be | ||
// redirected to [email protected] | ||
// all email addresses matching these regexes will be delivered | ||
// like normal, as well as being sent to [email protected] | ||
'/@specialdomain\.com$/', | ||
// all emails sent to [email protected] won't be | ||
// redirected to [email protected] too | ||
'/^admin@mydomain\.com$/', | ||
), | ||
)); | ||
In the above example all email messages will be redirected to ``[email protected]``, | ||
except messages sent to the ``[email protected]`` address or to any email | ||
address belonging to the domain ``specialdomain.com``, which will be delivered as normal. | ||
In the above example all email messages will be redirected to ``[email protected]`` | ||
and messages sent to the ``[email protected]`` address or to any email address | ||
belonging to the domain ``specialdomain.com`` will also be delivered as normal. | ||
|
||
Viewing from the Web Debug Toolbar | ||
---------------------------------- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.