This extension integrates the mailkit Api into Nette Framework.
You can install the extension using this command
$ composer require igloonet/nette-mailkit-api
and enable the extension using your neon config.
extensions:
mailkitApi: Igloonet\NetteMailkitApi\DI\MailkitApiExtension
mailkitApi:
clientId: ''
clientMd5: ''
The extension registers the Igloonet\MailkitApi\MailkitApi
as a service. Simply inject the service and use it.
class Mailer
{
/** @var \Igloonet\MailkitApi\MailkitApi */
private $mailkitApi;
public function __construct(\Igloonet\MailkitApi\MailkitApi $mailkitApi)
{
$this->mailkitApi = $mailkitApi;
}
// ...
Learn more in the documentation.