src/Koldy/Mail/Adapter/CommonMailAdapter.php
public function attachFile(string $filePath, string $name = null)
    {
        $this->attachedFiles[] = [
          'path' => $filePath,
          'name' => $name
        ];

        return $this;
    }
public function attachFile(string $filePath, string $name = null)
    {
        $this->attachedFiles[] = [
          'path' => $filePath,
          'name' => $name
        ];

        return $this;
    }
public function attachFile ( string $ filePath , string $ name = null ) { $ this -> attachedFiles [ ] = [ 'path' => $ filePath , 'name' => $ name ] ; return $ this ; }
Attach file to e-mail

@param string $filePath
@param string $name [optional]

@return $this
Attach file to e - mail