Skip to content

Email Monitoring

Email Monitoring can automatically receive and parse alarm emails, converting specified content into voice broadcasts.

This device supports email monitoring functionality, periodically retrieving emails from a mailbox. When an email is received from a specified sender with a subject containing specific keywords, the alarm light will trigger alerts according to the configured rules.

When certain network devices or software platforms have the ability to send emails, this feature can be used to send alarm notifications to the alarm light.

Email Collection Method 1 - Local SMTP Email Receiving Service

Section titled "Email Collection Method 1 - Local SMTP Email Receiving Service"

In intranet environments without a mail server, this feature allows the alarm light to serve as a simple mail server, enabling other SMTP-capable devices to send alarm notification emails to the alarm light for parsing.

Open the configuration page of the device that needs to send emails. Set the email sending server to the IP address of the alarm light. No username or password login is required. The sender and recipient can be defined freely, as long as they match the subsequent rule configuration.

Specific configuration methods vary by device. Please refer to the device’s user manual or contact the device manufacturer for support.

Received emails can be viewed in Log Management -> Local Email Receiving Log.

Parameters

  1. Account Name: Custom modification is not supported (Default: Local SMTP)
  2. Username: Custom local email address (Default: alarm@alarm.cc)
  3. Password: Custom local email password (Default: 12345678)

Configuration Example

  1. Add the following configuration
  2. Python Test Script
import smtplib
from email.mime.text import MIMEText
# SMTP server settings
smtp_host = "192.168.0.99"
smtp_port = 25
# Sender and recipient information
from_address = "test@example.com"
to_address = "recipient@example.com"
# Email content
subject = "Alert"
message = "This is a test email."
# Create MIMEText object
msg = MIMEText(message.encode("utf-8"), _charset="utf-8")
msg["Subject"] = subject
msg["From"] = from_address
msg["To"] = to_address
# Connect to SMTP server
smtp_server = smtplib.SMTP(smtp_host, smtp_port)
smtp_server.ehlo() # Send SMTP "hello" command
smtp_server.login("alarm@alarm.cc", "12345678") # Login to SMTP server
# Send email
smtp_server.sendmail(from_address, to_address, msg.as_string())
# Disconnect from SMTP server
smtp_server.quit()

Email Collection Method 2 - IMAP Email Retrieval from Other Mailboxes

Section titled "Email Collection Method 2 - IMAP Email Retrieval from Other Mailboxes"

This feature uses the IMAP protocol to log in to third-party email services. Before use, you need to enable the IMAP protocol for the mailbox.

Parameters

  1. Account Name: Custom mailbox name
  2. Username: Email address
  3. Password: IMAP-specific password
  4. IMAP Address: Specify the IMAP address for the mailbox type
  5. IMAP Port: Specify the IMAP port for the mailbox type
  6. Retrieval Interval: Time interval for reading unread emails from the mailbox
  7. Failure Alarm Count: Maximum number of consecutive email retrieval failures

Configuration Example

  1. Mailbox Account Settings
  2. Connection Test Result

Parameters

  1. Rule Name: Custom email monitoring rule name
  2. Subject Keywords: Specific keywords contained in the email subject
  3. Sender: Only recognize emails from this sender
  4. Broadcast Content: The content to be announced via voice when an alarm is triggered (supports regular expressions)
  5. Notification Group: Defaults to the default notification group if not changed; otherwise, please add a notification group first and then select it
  6. Read First Match Only: When the regular expression matches multiple results, only the first matched result will be read aloud
  7. Disabled: Disable this monitoring item

Configuration Example

  1. Set email monitoring rules
  2. Send an email with the subject containing “Alarm Triggered” to the xxx@163.com mailbox
  3. The alarm light will perform voice broadcast according to the configured settings