mini\Mail\EmailInterface::getBody()
Method
public
abstract
Signature
public abstract function getBody(): Psr\Http\Message\StreamInterface
Returns
Psr\Http\Message\StreamInterface
Documentation
Get the compiled message body as a stream
Returns the MIME body (without top-level headers) as a StreamInterface. The MIME structure is built automatically based on the content:
- Text only: text/plain
- HTML only: text/html (or multipart/related if inlines present)
- Both: multipart/alternative
- With attachments: wrapped in multipart/mixed