public sendFile ( string $filePath, string $attachmentName = null, array $options = [] ) | ||
$filePath | string | the path of the file to be sent. |
$attachmentName | string | the file name shown to the user. If null, it will be determined from `$filePath`. |
$options | array | additional options for sending the file. The following options are supported: - `mimeType`: the MIME type of the content. If not set, it will be guessed based on `$filePath` - `inline`: boolean, whether the browser should open the file within the browser window. Defaults to false, meaning a download dialog will pop up. |