# Send Mail

Sends a new e-mail.


---

### :arrow_left:**INPUT**

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `MailName` | `String` | ❌No      | Mail configuration name |
| `To`      | `String` | ✅Yes     | Recipient addresses |
| `Cc`      | `String` | ❌No      | CC addresses |
| `Bcc`     | `String` | ❌No      | BCC addresses |
| `Subject` | `String` | ❌No      | Subject     |
| `Body`    | `String` | ❌No      | Body content |
| `Attachment` | `List<PAWMailAttachment>` | ❌No      | Attachment file list |
| `AttachmentFolderPath` | `String` | ❌No      | Attachment file folder path |
| `DoNotLog` | `Boolean` | ❌No      | Whether to skip logging |
| `IsBodyHtml` | `Boolean` | ❌No      | Whether the body is HTML |
| `Importance` | `Int32?` | ❌No      | Importance level (0=Low, 1=Normal, 2=High). Default: 1 |


---

### :arrow_right:**OUTPUT**

| **Parameter** | **Type** | **Description** |
|-----------|------|-------------|
| `IsSendMailSuccessful` | `Boolean` | Whether the send succeeded |
| `SendMailMessage` | `String` | Result/error message |
| `MailSentId` | `Guid?` | ID of the sent mail |


---

### :arrow_down:**MISC**

| **Parameter** | **Type** | **Default** | **Description** |
|-----------|------|---------|-------------|
| `ThrowException` | `Boolean` | ❌No     | Throw exception on error |