mini\Mail\Message::fromFile()
Method
public
static
Signature
public static function fromFile(string $path, ?string $mimeType = NULL): static
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$path |
string |
required | Documentation missing |
$mimeType |
?string |
NULL
|
Documentation missing |
Returns
static
Documentation
Create a MIME message from a file
Automatically detects MIME type from extension. Stores the original filename in X-Mini-Filename header for later use (e.g., by withAttachment). Does not set Content-Disposition - that's the caller's responsibility.