marko/mail-smtp

SMTP driver for Marko Framework Mail

Maintainers

Package info

github.com/marko-php/marko-mail-smtp

pkg:composer/marko/mail-smtp

Statistics

Installs: 0

Dependents: 0

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

SMTP mail driver --- delivers emails over SMTP with TLS, authentication, and MIME encoding.

Installation

composer require marko/mail-smtp

Quick Example

use Marko\Mail\Contracts\MailerInterface;
use Marko\Mail\Message;

class OrderNotifier
{
    public function __construct(
        private MailerInterface $mailer,
    ) {}

    public function notifyShipment(string $email, string $trackingNumber): void
    {
        $message = Message::create()
            ->to($email)
            ->from('orders@example.com', 'Store')
            ->subject('Your order has shipped')
            ->html("<p>Tracking: $trackingNumber</p>");

        $this->mailer->send($message);
    }
}

Documentation

Full usage, API reference, and examples: marko/mail-smtp