Method: Mandrill::Rejects#delete

Defined in:
lib/mandrill/api.rb

#delete(email, subaccount = nil) ⇒ Hash

Deletes an email rejection. There is no limit to how many rejections you can remove from your blacklist, but keep in mind that each deletion has an affect on your reputation.

Parameters:

  • email (String)

    an email address

  • subaccount (String) (defaults to: nil)

    an optional unique identifier for the subaccount to limit the blacklist deletion

Returns:

  • (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.

    • String

      subaccount the subaccount blacklist that the address was removed from, if any



482
483
484
485
# File 'lib/mandrill/api.rb', line 482

def delete(email, subaccount=nil)
    _params = {:email => email, :subaccount => subaccount}
    return @master.call 'rejects/delete', _params
end