public function addAttachment($file, $forceFileName = '', $forceMimeType = '')
    {
        $this->attachments[] = array(
            'file' => $file,
            'fileName' => $forceFileName,
            'mimeType' => $forceMimeType,
        );

        return $this;
    }
public function addAttachment($file, $forceFileName = '', $forceMimeType = '')
    {
        $this->attachments[] = array(
            'file' => $file,
            'fileName' => $forceFileName,
            'mimeType' => $forceMimeType,
        );

        return $this;
    }
public function addAttachment ( $ file , $ forceFileName = '' , $ forceMimeType = '' ) { $ this -> attachments [ ] = array ( 'file' => $ file , 'fileName' => $ forceFileName , 'mimeType' => $ forceMimeType , ) ; return $ this ; }
Autodetect mime type relies on php fileinfo extension
@param string $file
@param string $forceFileName
@param string $forceMimeType
@return $this
Autodetect mime type relies on php fileinfo extension