public function addAttachmentFromFile($name, $path, $mimeType = 'application/octet-stream', $contentId = null)
    {
        if (file_exists($path) && is_file($path) && is_readable($path)) {
            $this->addAttachmentFromData($name, file_get_contents($path), $mimeType, $contentId);
        }
    }
public function addAttachmentFromFile($name, $path, $mimeType = 'application/octet-stream', $contentId = null)
    {
        if (file_exists($path) && is_file($path) && is_readable($path)) {
            $this->addAttachmentFromData($name, file_get_contents($path), $mimeType, $contentId);
        }
    }
public function addAttachmentFromFile ( $ name , $ path , $ mimeType = 'application/octet-stream' , $ contentId = null ) { if ( file_exists ( $ path ) && is_file ( $ path ) && is_readable ( $ path ) ) { $ this -> addAttachmentFromData ( $ name , file_get_contents ( $ path ) , $ mimeType , $ contentId ) ; } }
Add email attachment via file path

@param string $name      The name of the file.
@param string $path      Path to the attachment file.
@param string $mimeType  The specify MIME type.
@param string $contentId Content ID.

@return boolean
Add email attachment via file path