marko/mail

Marko Framework Mail - Message building and mailing interfaces

Maintainers

Package info

github.com/marko-php/marko-mail

pkg:composer/marko/mail

Statistics

Installs: 4

Dependents: 4

Suggesters: 1

Stars: 0

0.0.1 2026-03-25 17:53 UTC

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