PHP Luminova: Application Mail Client Configuration
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
- Full namespace:
App\Kernel - File path:
/app/Kernel.php - This class extends Luminova\Foundation\Core\AbstractKernel.
- This class is final.
Methods
getMailer
Create the application's mailer. The framework forwards its supplied arguments to this method.
public function getMailer(mixed ...$arguments): MailerInterfaceParameters:
| Parameter | Type | Description |
|---|---|---|
$arguments | mixed | Variadic 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.