---
title: "Interface IMailRequest"
slug: "sdk--stylelabs.m.sdk.contracts.notifications.imailrequest"
abstract: ""
---
# Interface IMailRequest

Interface for e-mail notification requests.

## Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ContractsNotifications

## Assembly: Stylelabs.M.Sdk.dll

## Syntax

```csharp
public interface IMailRequest
```

## Properties

### MailTemplateName

Gets or sets the name of the mail template to be used.

#### Declaration

```csharp
string MailTemplateName { get; set; }
```

#### Property Value

| Type | Description |
| --- | --- |
| string |  |

### Variables

Gets or sets the variables to be applied on the mail template.

#### Declaration

```csharp
JObject Variables { get; set; }
```

#### Property Value

| Type | Description |
| --- | --- |
| JObject |  |

## Methods

### Validate()

Validates the mail request.

#### Declaration

```csharp
void Validate()
```

#### Exceptions

| Type | Condition |
| --- | --- |
| [ValidationException](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.exceptions.validationexception.html) | When the request has invalid properties. |
