# Class Mandrill

Located at Mandrill.php

Methods summary
`public` | # `__construct( mixed $apikey = null )`
`public` | # `__destruct( )`
`public` | # `call( mixed $url, mixed $params )`
`public` | # `readConfigs( )`
`public` | # `castError( mixed $result )`
`public` | # `log( mixed $msg )`

Properties summary
`public mixed` | $apikey | `` | #
`public mixed` | $ch | `` | #
`public string` | $root | `'https://mandrillapp.com/api/1.0'` | #
`public boolean` | $debug | `false` | #
`public static array` | $error_map | `array( "ValidationError" => "Mandrill_ValidationError", "Invalid_Key" => "Mandrill_Invalid_Key", "PaymentRequired" => "Mandrill_PaymentRequired", "Unknown_Subaccount" => "Mandrill_Unknown_Subaccount", "Unknown_Template" => "Mandrill_Unknown_Template", "ServiceUnavailable" => "Mandrill_ServiceUnavailable", "Unknown_Message" => "Mandrill_Unknown_Message", "Invalid_Tag_Name" => "Mandrill_Invalid_Tag_Name", "Invalid_Reject" => "Mandrill_Invalid_Reject", "Unknown_Sender" => "Mandrill_Unknown_Sender", "Unknown_Url" => "Mandrill_Unknown_Url", "Unknown_TrackingDomain" => "Mandrill_Unknown_TrackingDomain", "Invalid_Template" => "Mandrill_Invalid_Template", "Unknown_Webhook" => "Mandrill_Unknown_Webhook", "Unknown_InboundDomain" => "Mandrill_Unknown_InboundDomain", "Unknown_InboundRoute" => "Mandrill_Unknown_InboundRoute", "Unknown_Export" => "Mandrill_Unknown_Export", "IP_ProvisionLimit" => "Mandrill_IP_ProvisionLimit", "Unknown_Pool" => "Mandrill_Unknown_Pool", "NoSendingHistory" => "Mandrill_NoSendingHistory", "PoorReputation" => "Mandrill_PoorReputation", "Unknown_IP" => "Mandrill_Unknown_IP", "Invalid_EmptyDefaultPool" => "Mandrill_Invalid_EmptyDefaultPool", "Invalid_DeleteDefaultPool" => "Mandrill_Invalid_DeleteDefaultPool", "Invalid_DeleteNonEmptyPool" => "Mandrill_Invalid_DeleteNonEmptyPool", "Invalid_CustomDNS" => "Mandrill_Invalid_CustomDNS", "Invalid_CustomDNSPending" => "Mandrill_Invalid_CustomDNSPending", "Metadata_FieldLimit" => "Mandrill_Metadata_FieldLimit", "Unknown_MetadataField" => "Mandrill_Unknown_MetadataField" )` | #