The Features Menu :: Email


param.cgi?cmd=getsmtpattr

Get Email Server Parameter

  • ma_server: SMTP Server Address e.g. smtp.strato.de
  • ma_port: SMTP Server Port e.g. 25, 587 (TLS) or 465 (SSL)
  • ma_ssl: SSL Encryption 0 (Disabled), 1 (SSL), 2 (TLS) or 3 (STARTTLS)
  • ma_username: SMTP Server Username
  • ma_password: SMTP Server Password Note: The password can be SET but will not be returned in a GET request!
  • ma_from: Sender Email Address
  • ma_to: Receiver Email Addresses. Append email addresses in order to send to multiple receivers. eg: test@instar.de,test2@instar.de
  • ma_subject: Mail subject line
  • ma_tsubject: Photoseries mail subject line
  • ma_text: Mail Content

Example

GET: http://admin:instar@192.168.2.168/param.cgi?cmd=getsmtpattr

cmd="getsmtpattr";
ma_server="my.mailserver.com";
ma_port="587";
ma_ssl="3";
ma_username="cam@my.email";
ma_from="cam@my.email";
ma_to="cam@web.de";
ma_subject="MyCam";
ma_text="Hello";
response="200";
GET: http://192.168.2.168/param.cgi?cmd=getsmtpattr&user=admin&pwd=instar

cmd="getsmtpattr";
ma_server="my.mailserver.com";
ma_port="587";
ma_ssl="3";
ma_username="cam@my.email";
ma_from="cam@my.email";
ma_to="cam@web.de";
ma_subject="MyCam";
ma_text="Hello";
response="200";
SET: http://admin:instar@192.168.2.168/param.cgi?cmd=setsmtpattr&ma_ssl=3&ma_from=cam%40instar.email&ma_to=me@gmail.com%3B&ma_subject=Alarm%20Email&ma_text=ALARM&ma_server=mx.instar.email&ma_port=587&ma_username=cam%40instar.email&ma_password=kunde123

cmd="setsmtpattr";
response="200";

param.cgi?cmd=testsmtp

Test Email Server Parameter

  • result:
    • 0: Success
    • -1: Can’t connect to Server
    • -2: Invalid credentials
    • -3: Permission error / Bad path
    • -4: Timeout
    • -5: Server cannot be verified
    • -6: Busy
    • -7: Internal error
    • -8: Unknown error
    • -9: Transfer incomplete

Example

GET: http://admin:instar@192.168.2.168/param.cgi?cmd=testsmtp

result="0";

param.cgi?cmd=getmaaction

Enable / Disables Alarm EMail Snapshots

  • enable: De/Activate alarm recording [0, 1]
  • interval: Cooldown time between Mails [30 - 86399] s

Example

GET: http://admin:instar@192.168.2.168/param.cgi?cmd=getmaaction

cmd="getmaaction";
enable="0";
interval="60";
response="200";
GET: http://192.168.2.168/param.cgi?cmd=getmaaction&user=admin&pwd=instar

cmd="getmaaction";
enable="0";
interval="60";
response="200";
GET: http://192.168.2.168/param.cgi?cmd=setmaaction&enable=1

cmd="setalarmrecattr";
response="200";

param.cgi?cmd=getmaactionattr

Get Email Notification Parameter

  • snapcount: Attach snapshot to email [0-10]

Example

GET: http://admin:instar@192.168.2.168/param.cgi?cmd=getmaactionattr

cmd="getmaactionattr";
snapcount="5";
response="200";
GET: http://192.168.2.168/param.cgi?cmd=getmaactionattr&user=admin&pwd=instar

cmd="getmaactionattr";
snapcount="5";
response="200";
SET: http://admin:instar@192.168.2.168/param.cgi?cmd=setmaactionattr&snapcount=1

cmd="setmaactionattr";
response="200";