Block an email address or domain for a site
block_site_email_address
Adds one address, or one whole domain, to a site's blocked list by hand, so the site never emails it again.
A blocked address is skipped from every later message, and a message whose recipients are all blocked is refused. Pass a domain in email as example.com, @example.com or *@example.com, and it blocks every address at exactly that domain, not its subdomains. Anything else is refused with Enter one email address, or a domain such as example.com!
The tool tells the client to use it when you ask, for example because somebody asked not to be contacted. An entry already on the list keeps the reason it has, and the answer says it was already blocked, with alreadyBlocked true. Nothing already sent changes, and delete_site_email_suppression takes the entry off the list again. See Blocked addresses.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
projectId |
string | Yes | The site id. |
email |
string | Yes | The email address to block, or a domain such as example.com to block every address at it. |