Skip to content

Latest commit

 

History

History
50 lines (34 loc) · 894 Bytes

index.md

File metadata and controls

50 lines (34 loc) · 894 Bytes

Quickstart

This extension integrates the mailkit Api into Nette Framework.

Installation

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

Minimal configuration

mailkitApi:
	clientId: ''
	clientMd5: ''

Usage

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;
	}

	// ...

Documentation

Learn more in the documentation.