zpl.tools
Network and wireless

^NT - Set SMTP

Points the printer at an SMTP server so it can e-mail alerts.

^NT gives the printer the SMTP server and domain it needs to send e-mail. The printer's alert settings use it to report conditions such as media-out or head-open. Both arguments are needed: the server address says where mail goes, and the print server domain is the domain the printer presents as its own. ^NT and ~NT are unrelated — ~NT puts an RS-485 printer into transparent mode.

Syntax

^NTa,b

Support

Recognised, deliberately skippedparsed: none · state: none · rendered: none

Accepted and skipped, because it configures the printer rather than the label. It cannot change the rendered output, and Labelary skips it too.

Alert delivery is a printer-management feature, not label content. The renderer does not parse this command. It reports IGNORED_COMMAND at info severity, which does not reach X-Warnings. Labelary is also silent, so the rendered label is identical in both engines. — not pinned by a test

Labelary renders this command.

Parameters

aSMTP server addressrequired · text

The mail server, in xxx.xxx.xxx.xxx form.

Invalid value
not documented, and we have not measured it. The renderer does not parse or measure this command. The guide states no default.
Test coverage
bPrint server domainrequired · text

The domain the printer presents as its own, for example zebra.com.

Invalid value
not documented, and we have not measured it. The renderer does not parse or measure this command. The guide states no default.
Test coverage

Behavior

The server address is a dotted quad and the domain is a name, for example zebra.com. The guide states no default for either.

Alerts are asynchronous printer events and not part of a format, so nothing here can appear on a label.

The renderer ignores this command and reads no arguments. It reports IGNORED_COMMAND at info severity, which does not reach the X-Warnings header. Labelary is also silent, so the rendered label is identical in both engines.

Example

Pointing the printer at a mail server. The label is unchanged:

^XA
^NT192.168.0.10,zebra.com
^FO40,60^A0N,50,50^FDSMTP set^FS
^XZ

Open in viewer