Email rule object
JSON
- JSON
- XML
{
"type": "from_domain",
"value": "altcraft.com",
"senders": [
{
"sender_id": 287,
"percent": 100,
"from_email": "no-reply@altcraft.com",
"replyto_email": "no-reply@altcraft.com",
"from_name": ""
}
]
}
<xml>
<type>from_domain</type>
<value>altcraft.com</value>
<senders array='true'>
<sender_id>287</sender_id>
<percent>100</percent>
<from_email>no-reply@altcraft.com</from_email>
<replyto_email>no-reply@altcraft.com</replyto_email>
<from_name></from_name>
</senders>
</xml>
Object parameters
Parameter | Type | Example | Description |
---|---|---|---|
type | string | "default" | Email sender rule type |
value | string/int | "" | depending on rule type |
senders | JSON array | [] | Senders list |
Rule types
Type | Value type | Example | Description |
---|---|---|---|
default | string | "" | Always enabled |
group_id | int | 12 | If group ID equals.. |
from_domain | string | "altcraft.com" | If From domain equals.. |
to_domain | string | "gmail.com" | If To domain equals.. |