diff --git a/htdocs/admin/mails.php b/htdocs/admin/mails.php index 8be4899ebfe..b09e8da9d4a 100644 --- a/htdocs/admin/mails.php +++ b/htdocs/admin/mails.php @@ -159,6 +159,14 @@ if (! empty($_POST['removedfile']) || ! empty($_POST['removedfilehtml'])) if ($_POST['removedfilehtml'] || $action='sendhtml') $action='testhtml'; } +/* + * Cancel + */ +if (($action == 'send' || $action == 'sendhtml') && $_POST['cancel']) +{ + $message=''; +} + /* * Send mail */