protected function createMailer( $settings = null ) {
		$settings = is_array( $settings ) ? $settings : [];
		$mailer = new PHPMailer( true );
		foreach ( array_merge( $this->settings, $settings ) as $key => $value ) {
			$mailer->set( $key, $value );
		}
		return $mailer;
	}