Skip to content

Commit

Permalink
[TASK] Add screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
georgringer committed Feb 29, 2024
1 parent decba35 commit 50a2083
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Classes/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function __construct()
try {
$settings = GeneralUtility::makeInstance(ExtensionConfiguration::class)->get('sent_mails');

$this->rejectBySearchTerms = GeneralUtility::trimExplode('|', $settings['rejectBySearchTerms'] ?? '', true);
$this->rejectBySearchTerms = GeneralUtility::trimExplode('###', $settings['rejectBySearchTerms'] ?? '', true);
$this->mailAPIUsername = $settings['mailAPIUsername'] ?? '';
$this->mailAPIPassword = $settings['mailAPIPassword'] ?? '';
} catch (\Exception $e) {
Expand Down
16 changes: 15 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ Using a dedicated backend module a user can:
* resend the mail
* forward the mail to a different email address
* reject mails with a specific content
* send a test email

![module.png](Resources/Public/Screenshots/module.png)

## Installation

Expand All @@ -16,7 +19,18 @@ This extension requires the usage of composer!
composer req studiomitte/sent-mails
```

## Mail-Information API
## Features

### Reject sending mails

The extension provides a simple way to reject sending mails with a specific content. This can be useful to prevent sending mails to special email addresses.
The current use case is to skip sending mails triggered by frontend tests which use a specific email address like `[email protected]`.

The regex searchwords can be configured in the extension settings with e.g. `cypress\+[\._a-zA-Z0-9-]+@domain\.tld'`.

### Mail-Information API

Calling `/api/mailinformation?search=somecontent` will return a status information about the sent mails. Basic auth needs to be configured in the extension settings.
It only allows to retrieve the information of mails sent in the last 60 seconds

In combination with the feature "Reject sending mails" this can be used to check if a mail would have been sent or not.
Binary file added Resources/Public/Screenshots/module.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"TYPO3",
"extension",
"backend",
"search"
"mail"
],
"authors": [
{
Expand Down

0 comments on commit 50a2083

Please sign in to comment.