src/Mailer.php
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;
	}
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;
	}
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 ; }
Create and configure a PHPMailer instance.

@param array $settings Configuration settings
@return PHPMailer New mailer configured with default, instance and local
settings
Create and configure a PHPMailer instance .