Modulify

Turn the email forwarding of a site on or off

set_site_email_forwarding

Turns the forwarding of incoming mail on or off for a site, which is on by default for every site.

While it is on, mail sent to any address at the site's built-in sending domain, and at each of its email domains with receiving on, goes to the site's confirmed forwarding addresses (forwarding.recipients in get_site_email_settings).

While it is off, that mail is accepted and dropped without a bounce, mail still waiting to be forwarded is dropped too, and none of it is forwarded later, so the tool tells the client to confirm with you before turning it off. Turning it on is refused with Email forwarding is not set up on this server yet! while forwarding.available is false, and turning it off always works.

It needs the Delete projects permission. See Turn forwarding off and on.

Inputs

Input Type Required Description
projectId string Yes The site id.
enabled boolean Yes True to turn forwarding on, false to turn it off.