mini\Mail\Message::detectMimeType()
Method
protected
static
Signature
protected static function detectMimeType(string $path): string
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$path |
string |
required | Documentation missing |
Returns
string
Documentation
Detect MIME type from file path
Uses extension-based detection (reliable for known types). Falls back to application/octet-stream for unknown extensions.