mirror of
				https://github.com/slawkens/myaac.git
				synced 2025-11-04 01:36:23 +01:00 
			
		
		
		
	Show error when mail is not enabled
This commit is contained in:
		@@ -23,6 +23,11 @@ class MailSendCommand extends Command
 | 
			
		||||
	{
 | 
			
		||||
		$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');
 | 
			
		||||
		$subject = $input->getOption('subject');
 | 
			
		||||
		if (!$subject) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user