public function initMailer($options) {
		$this->options = $options;
		
		if (isset($this->options['format'])) {
			$this->formatoptions = $this->options['format'];
			unset($this->options['format']);
		}
		
		if (isset($this->options['logger'])) {
			$this->setLogger($this->options['logger']);
			
			if (!isset($this->formatoptions['logger'])) {
				$this->formatoptions['logger'] = $this->options['logger'];
			}
			
			unset($this->options['logger']);
		}
		
		
	}