mini\Mail\Mailer
final
class
Documentation
Mail sending with envelope handling and Bcc stripping
This class wraps a MailTransportInterface and provides:
- Automatic envelope sender resolution (explicit > default > From header)
- Automatic recipient collection from To + Cc + Bcc headers
- Bcc header stripping before sending (transport never sees Bcc)
Usage: $mailer = new Mailer($transport); $mailer->send($email);
// Or with explicit envelope: $mailer->send($email, 'bounce@example.com', ['recipient@example.com']);
Inheritance
Implements:
mini\Mail\MailTransportInterface
Properties (2)
private
?
string $defaultSender
Methods (5)
Documentation missing
Send an email
Resolve envelope sender address
Collect all recipient addresses from To, Cc, and Bcc headers
Extract bare email address from a mailbox string