This section documents every public method in the helpers/domain.cfc
file. A few notes about structure, data, and usage:
- Unless indicated, all methods are chainable.
Required. Sets the domain being authenticated.
Sets the subdomain to use for this authenticated domain.
Sets the username associated with this domain.
Specify whether to use a custom SPF or allow SendGrid to manage your SPF. This option is only available to authenticated domains set up for manual security.
Whether to use this authenticated domain as the fallback if no authenticated domains match the sender's domain.
Whether to allow SendGrid to manage your SPF records, DKIM keys, and DKIM key rotation.
Sets a custom DKIM selector. Accepts three letters or numbers.
Set an array of ips you would like associated to this domain. If ips are already set, this overwrites them. The parameter ips
can be passed in as an array or comma separated list. Lists will be converted to arrays.
Appends a single ip to the ips array.
Assembles the JSON to send to the API. Generally, you shouldn't need to call this directly.