Luminova Framework

PHP Luminova: Application Mail Client Configuration

Last updated: 2026-11-28 20:57:12

Choose the mailer implementation through the application kernel.

The application kernel resolves the implementation used by the framework mailer. It provides NovaMailer by default. Override getMailer() in App\Kernel to select another implementation.

Class Definition


Methods

getMailer

Create the application's mailer. The framework forwards its supplied arguments to this method.

public function getMailer(mixed ...$arguments): MailerInterface

Parameters:

ParameterTypeDescription
$argumentsmixedVariadic arguments to forward to the mailer constructor.

Return:

MailerInterface - The configured mailer. The inherited implementation constructs NovaMailer.

To use another implementation, return an instance of Luminova\Components\Email\Clients\PHPMailer, Luminova\Components\Email\Clients\SwiftMailer, or your own implementation of MailerInterface.