1
0
mirror of https://github.com/flarum/core.git synced 2025-10-19 10:46:06 +02:00

Send Test Mail Feature (#2023)

- Add UI, backend for sending test emails
- Change mail settings endpoint to /api/mail/settings
This commit is contained in:
Alexander Skvortsov
2020-05-30 22:49:36 -04:00
committed by GitHub
parent 63242edeb3
commit d1750fecc0
4 changed files with 112 additions and 11 deletions

View File

@@ -309,8 +309,15 @@ return function (RouteCollection $map, RouteHandlerFactory $route) {
// List available mail drivers, available fields and validation status
$map->get(
'/mail-settings',
'/mail/settings',
'mailSettings.index',
$route->toController(Controller\ShowMailSettingsController::class)
);
// Send test mail post
$map->post(
'/mail/test',
'mailTest',
$route->toController(Controller\SendTestMailController::class)
);
};