class Mandrill::Whitelists
- Mandrill::Whitelists
- Reference
- Object
Defined in:
mandrill/api.crConstructors
Instance Method Summary
-
#add(email, comment = nil)
Adds an email to your email rejection whitelist.
-
#delete(email)
Removes an email address from the whitelist.
-
#list(email = nil)
Retrieves your email rejection whitelist.
Constructor Detail
Instance Method Detail
Adds an email to your email rejection whitelist. If the address is currently on your blacklist, that blacklist entry will be removed automatically. @param [String] email an email address to add to the whitelist @param [String] comment an optional description of why the email was whitelisted @return [Hash] a status object containing the address and the result of the operation
- [String] email the email address you provided
- [Boolean] added whether the operation succeeded
Removes an email address from the whitelist. @param [String] email the email address to remove from the whitelist @return [Hash] a status object containing the address and whether the deletion succeeded
- [String] email the email address that was removed from the blacklist
- [Boolean] deleted whether the address was deleted successfully
Retrieves your email rejection whitelist. You can provide an email address or search prefix to limit the results. Returns up to 1000 results. @param [String] email an optional email address or prefix to search by @return [Array] up to 1000 whitelist entries
- [Hash] return[] the information for each whitelist entry
- [String] email the email that is whitelisted
- [String] detail a description of why the email was whitelisted
- [String] created_at when the email was added to the whitelist