Email Client
Document revision: | 1.1 (Tue Jul 06 10:15:56 GMT 2004) |
Applies to: | V2.8 |
General Information
Summary
E-Mail client tool is used for sending e-mail messages from the router.
Specifications
Packages required: advanced-toolsLicense required: Level1
Submenu level: /tool e-mail
Standards and Technologies: none
Hardware usage: Not significant
Related Documents
Description
This tool is mainly used in various types of scripts to inform the system administrator that some event has happened. You can also use this tool simply for sending e-mail messages over the network.
Configure Default Settings
Description
This section shows you how to configure the default e-mail client settings.
Property Description
from (text; default: "<>") - from field of the e-mail messageserver (IP address; default: 0.0.0.0) - SMTP server to use when sending the e-mail messageExample
To set the default e-mail settings:
[admin@MikroTik] tool e-mail> set server=10.1.0.7 from=someone1@mikrotik.com [admin@MikroTik] tool e-mail> print server: 10.1.0.7 from: someone1@mikrotik.com [admin@MikroTik] tool e-mail>
Sending a Message
Command name: /tool e-mail sendDescription
This section describes the e-mail sending parameters.
Property Description
body (text; default: "") - the e-mail message's body (text that will be sent)file (name) - name of the file on router to attach to the messagefrom (text; default: "<>") - 'from' field of the e-mail message (if none specified, the default 'from' field will be used)server (IP address; default: 0.0.0.0) - SMTP server to use when sending the e-mail message (if none specified, the defauld SMTP server will be used)subject (text; default: "") - subject of the messageto (text; default: "") - e-mail address of the recipientExample
To send an e-mail message:
[admin@MikroTik] tool e-mail> send file=back.backup to=someone2@mikrotik.com \ \... body="This morning" subject="Backup"