public function addAttachment(string $path, string $name = ''): bool
    {
        return $this->PHPMailer->addAttachment($path, $name);
    }
public function addAttachment(string $path, string $name = ''): bool
    {
        return $this->PHPMailer->addAttachment($path, $name);
    }
public function addAttachment ( string $ path , string $ name = '' ) : bool { return $ this -> PHPMailer -> addAttachment ( $ path , $ name ) ; }
Add an attachment from the filesystem.

@param string $path
@param string $name

@throws Exception

@return bool
Add an attachment from the filesystem .