marko / mail-smtp
SMTP driver for Marko Framework Mail
0.0.1
2026-03-25 17:53 UTC
Requires
- php: ^8.5
- marko/core: 0.0.1
- marko/mail: 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
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