[**Documentation**](../../../README)

***

[Documentation](../../../README) / [@zerotal/notifications](../README) / MailChannel

# Class: MailChannel

Defined in: [notifications/src/MailChannel.ts:15](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/notifications/src/MailChannel.ts#L15)

The `mail` notification channel — renders a notification's `toMail()` MailMessage and
delivers it through the configured driver (log / SMTP / Resend). Built-in to
@zerotal/notifications, so the mail channel works without any extra package.

## Constructors

### Constructor

> **new MailChannel**(`config`): `MailChannel`

Defined in: [notifications/src/MailChannel.ts:19](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/notifications/src/MailChannel.ts#L19)

#### Parameters

##### config

[`MailConfigShape`](../interfaces/MailConfigShape)

#### Returns

`MailChannel`

## Methods

### send()

> **send**(`notifiable`, `notification`): `Promise`\<`void`\>

Defined in: [notifications/src/MailChannel.ts:52](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/notifications/src/MailChannel.ts#L52)

#### Parameters

##### notifiable

`Notifiable`

##### notification

[`Notification`](Notification)

#### Returns

`Promise`\<`void`\>
