This function blocks email from specific countries.
country_code required | string The country to block. The ISO 3166-1 alpha-2 code two-letter country code. Warning: Do not block the Note:
country_code=country_code-1=AA country_code-2=AB country_code-3=AC country_code=AA |
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ block_incoming_email_from_country \ country_code='AA'
{- "data": {
- "updated": 1
}, - "metadata": {
- "command": "block_incoming_email_from_country",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}