src/Koldy/Mail.php
public static function isEnabled(string $adapter): bool
    {
        $config = static::getConfig();

        if (!$config->has($adapter)) {
            return false;
        }

        $enabled = $config->getArrayItem($adapter, 'enabled');
        if ($enabled === null) {
            return false;
        }

        return (bool)$enabled;
    }
public static function isEnabled(string $adapter): bool
    {
        $config = static::getConfig();

        if (!$config->has($adapter)) {
            return false;
        }

        $enabled = $config->getArrayItem($adapter, 'enabled');
        if ($enabled === null) {
            return false;
        }

        return (bool)$enabled;
    }
public static function isEnabled ( string $ adapter ) : bool { $ config = static :: getConfig ( ) ; if ( ! $ config -> has ( $ adapter ) ) { return false ; } $ enabled = $ config -> getArrayItem ( $ adapter , 'enabled' ) ; if ( $ enabled === null ) { return false ; } return ( bool ) $ enabled ; }
You can check if configure mail adapter is enabled or not.

@param string $adapter

@return boolean
@throws ConfigException
@throws Exception
You can check if configure mail adapter is enabled or not .