JSON Object Sample
{
    "EmailAddress": "test@safe-mail.net",
    "UseMXRecord": false,
    "Outgoing_Server": "smtp.gmail.com",
    "Outgoing_UseSSL": true,
    "Outgoing_Username": "dotcom.monitor1@gmail.com",
    "Outgoing_Password": "test",
    "SendFromMail": "test@safe-mail.net",
    "Incoming_ServerType": "IMAP4.1",
    "Incoming_Server": "pop.safe-mail.net",
    "Incoming_UseSSL": true,
    "Incoming_Username": "test@safe-mail.net",
    "Incoming_Password": "test",
    "OperationTimeoutSendingSec": 300,
    "OperationTimeoutReceivingSec": 600,
    "OverallOperationTimeoutMin": 60,
    "DNSResolveMode": "Device Cached",
    "DNSserverIP": "",
    "CustomDNSHosts": null,
    "Device_Id": 63649,
    "Id": 427592,
    "Task_Type_Id": 5,
    "Name": "smtp.gmail.com<-->pop.safe-mail.net"
}

Fields Description

Field Type Required/Optional Description

EmailAddress

string

required 

Destination email address.

UseMXRecord

boolean

optional

When enabled – MX Record will be used to send a test email.

Outgoing_Server

string

required 

SMTP Server address and port number.

Outgoing_UseSSL

boolean

optional

When enabled – SMTP over SSL will be requested.

Outgoing_Username

boolean

optional This field contains a username for SMTP authentication.

.Outgoing_Password

string

optional This field contains a username for SMTP authentication.

SendFromMail

string

optional Email address to show in the Send From field.

Incoming_ServerType

string

required  This field defines protocol type.

Possible values are “POP3” and “IMAP”.

Incoming_Server string required  This field is for POP3/IMAP server address and port number.
Incoming_UseSSL boolean optional When enabled – POP3/IMAP over SSL will be requested.
Incoming_Username string required  This field contains a username for POP3/IMAP authentication.
Incoming_Password string required  This field contains a password for POP3/IMAP authentication.
OperationTimeoutSendingSec int32 optional This field defines timeout for sending a test message.
OperationTimeoutReceivingSec int32 optional This field defines timeout for a test message receiving i.e. system will search for a test letter at a destination mail server for adjusted amount of time.
OverallOperationTimeoutMin int32 optional This field defines maximum time value (in mseconds) for task execution.

Value range: from 1 to 60.

DNSResolveMode string optional POSSIBLE VALUES:

  • Device Cached
  • Non Cached
  • TTL Cached
  • External DNS Server

For detailed explanation please see the “DNS Mode Option” article.

DNSserverIP string optional Field for a custom DNS server IP address. For detailed explanation please see the “DNS Mode Option” article.
Device_Id

int32

required

READ ONLY Field. Unique device ID.

Id

int32

required

*Only for edit operations

READ ONLY Field. The unique task id. Do not use for create operations.

Task_Type_Id

int32

required

The type id of the task.

Example:
"Task_Type_Id": 5

Name

string

optional

Task name.