mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-29 10:49:22 +02:00
Show error when mail is not enabled
This commit is contained in:
parent
0c332bd6a4
commit
c3dd10af96
@ -23,6 +23,11 @@ class MailSendCommand extends Command
|
|||||||
{
|
{
|
||||||
$io = new SymfonyStyle($input, $output);
|
$io = new SymfonyStyle($input, $output);
|
||||||
|
|
||||||
|
if (!setting('core.mail_enabled')) {
|
||||||
|
$io->error('Mailing is not enabled on this server');
|
||||||
|
return Command::FAILURE;
|
||||||
|
}
|
||||||
|
|
||||||
$email_account_name = $input->getArgument('recipient');
|
$email_account_name = $input->getArgument('recipient');
|
||||||
$subject = $input->getOption('subject');
|
$subject = $input->getOption('subject');
|
||||||
if (!$subject) {
|
if (!$subject) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user