Skip to content

Commit

Permalink
Bump version 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gillesbourgeat committed Jun 9, 2016
1 parent 14dbef5 commit ea95bcf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 38 deletions.
4 changes: 2 additions & 2 deletions Config/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
xsi:schemaLocation="http://thelia.net/schema/dic/module http://thelia.net/schema/dic/module/module-2_2.xsd">
<fullnamespace>TheliaMailCatcher\TheliaMailCatcher</fullnamespace>
<descriptive locale="en_US">
<title>This module catches all mails sent from Thelia for them to redirect to the notification emails of the store.</title>
<title>This module catches all mails sent from Thelia and redirect them to the admin emails (registered to receive notifications) in the store configuration.</title>
</descriptive>
<descriptive locale="fr_FR">
<title>Capture les mails envoyés par Thelia pour les rediriger sur les mails de notification de la boutique.</title>
<title>Ce module capture tous les mails envoyés à partir de Thelia et les redirige vers les e-mails d'administration (enregistrés pour recevoir des notifications) dans la configuration de la boutique.</title>
</descriptive>
<languages>
<language>en_US</language>
Expand Down
4 changes: 4 additions & 0 deletions Plugin/SwiftEventListenerPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ public function sendPerformed(\Swift_Events_SendEvent $evt)
{
$emails = ConfigQuery::getNotificationEmailsList();

if (!count($emails)) {
$emails = [ConfigQuery::getStoreEmail()];
}

$evt->getMessage()->setTo($emails);

$evt->getMessage()->setBcc([]);
Expand Down
39 changes: 3 additions & 36 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Thelia Mail Catcher

Add a short description here. You can also add a screenshot if needed.
This module catches all mails sent from Thelia and redirect them to the admin emails (registered to receive notifications) in the store configuration.

## Installation

Expand All @@ -14,42 +14,9 @@ Add a short description here. You can also add a screenshot if needed.
Add it in your main thelia composer.json file

```
composer require your-vendor/thelia-mail-catcher-module:~1.0
composer require thelia/thelia-mail-catcher-module:~0.1
```

## Usage

Explain here how to use your module, how to configure it, etc.

## Hook

If your module use one or more hook, fill this part. Explain which hooks are used.


## Loop

If your module declare one or more loop, describe them here like this :

[loop name]

### Input arguments

|Argument |Description |
|--- |--- |
|**arg1** | describe arg1 with an exemple. |
|**arg2** | describe arg2 with an exemple. |

### Output arguments

|Variable |Description |
|--- |--- |
|$VAR1 | describe $VAR1 variable |
|$VAR2 | describe $VAR2 variable |

### Exemple

Add a complete exemple of your loop

## Other ?

If you have other think to put, feel free to complete your readme as you want.
You just have to activate this module.

0 comments on commit ea95bcf

Please sign in to comment.