mini\Mail\MultipartMessage::withBody()
Method
public
Signature
public function withBody(Psr\Http\Message\StreamInterface $body): static
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$body |
Psr\Http\Message\StreamInterface |
required | Documentation missing |
Returns
static
Documentation
Return instance with the specified body
For multipart messages, if the body is a MessageInterface, it replaces all parts with that single part. Otherwise throws.