---
title: "mail:queue — Queue message"
description: "iXML command mail:queue: Queue message."
canonical_url: "https://www.zeyos.com/ixml/ref/mail-queue"
markdown_url: "https://www.zeyos.com/ai/guide/ixml/ref/mail-queue.md"
section: "ixml-reference"
authority: "reference"
language: "en"
source_repository: "https://cloud.zeyos.com/__doc/ixmldoc.xml"
source_sha256: "a23f04e6a98628ca3c273c3b8dd2c33c034cfda3e0f00478d8793074fd2f70dd"
---

# mail:queue — Queue message

MAIL:QUEUE consignes an e-mail message to the mail sending queue.

### Attributes
| Name | Type | Default | Description |
| ---- | ---- | ------- | ----------- |
| var | var |  | Result variable name for message ID |
| mailserver | int | (default system SMTP server) | Mail server ID |
| senddate | int | (do not send) | Send date |

### Children
- mail:header (occurrence: single) — Mail header
- mail:body (occurrence: single) — Mail body

### Parents
- (not restricted in the reference)

### Result
- binding: var; type: n/a

### Examples

```xml
<mail:queue senddate="1262103817">
						<mail:header>
From: person@example.com
To: person@example.com
Date: Tue, 29 Dec 2009 17:23:37 +0100
Subject: This is the subject of the message
Content-Type: text/plain
						</mail:header>
						<mail:body>This is the body of the message.</mail:body>
					</mail:queue>
```
