marko / mail
Marko Framework Mail - Message building and mailing interfaces
0.0.1
2026-03-25 17:53 UTC
Requires
- php: ^8.5
- marko/config: 0.0.1
- marko/core: 0.0.1
Requires (Dev)
- marko/testing: 0.0.1
- pestphp/pest: ^4.0
This package is auto-updated.
Last update: 2026-03-25 21:07:27 UTC
README
Mail contracts and message building -- compose emails with a fluent API and send them through any mail driver.
Installation
composer require marko/mail
Note: You also need an implementation package such as marko/mail-smtp or marko/mail-log.
Quick Example
use Marko\Mail\Contracts\MailerInterface; use Marko\Mail\Message; $message = Message::create() ->to('user@example.com', 'Jane Doe') ->from('hello@example.com', 'My App') ->subject('Welcome!') ->html('<h1>Welcome!</h1>') ->text('Welcome!'); $mailer->send($message);
Documentation
Full usage, API reference, and examples: marko/mail