public static function getEmail($config = null, $reset = true, $className = null) {
		if (empty($config)) {
			$config = Common::read('Email.config', 'default');
		}

		if (empty($className)) {
			$className = Common::read('Email.classname', 'CakeEmail');
		}
		list($plugin, $className) = pluginSplit($className, true);

		$key = ucfirst(Inflector::camelize($config)) . 'Email';

		if (!ClassRegistry::isKeySet($key)) {
			App::uses($className, $plugin . 'Network/Email');
			ClassRegistry::addObject($key, new $className($config));
		}

		$Email = ClassRegistry::getObject($key);

		if ($reset) {
			$Email->reset()->config($config);
		}

		return $Email;
	}