mini\Mail\FileTransport
final
class
Documentation
File-based mail transport for development and testing
Logs complete emails (headers + body) to a file instead of sending them. Useful for development when you don't have SMTP configured, and for testing email functionality without sending real emails.
Usage: $transport = new FileTransport('data/mail.log'); $mailer = new Mailer($transport); $mailer->send($email);
// Then check data/mail.log for the email content
Inheritance
Implements:
mini\Mail\MailTransportInterface
Properties (1)
private
string $logPath
Methods (3)
Documentation missing
Log an email to the file
Get the configured log path