function mandrill_delete_inbound_domain in Mandrill 7.2
Same name and namespace in other branches
- 8 mandrill.module \mandrill_delete_inbound_domain()
Delete an inbound domain.
File
- ./
mandrill.module, line 585 - Enables Drupal to send email directly through Mandrill.
Code
function mandrill_delete_inbound_domain($domain) {
$result = NULL;
try {
if ($mandrill = mandrill_get_api_object()) {
$result = $mandrill->inbound
->deleteDomain($domain);
}
} catch (Mandrill_Error $e) {
drupal_set_message(t('Mandrill: %message', array(
'%message' => $e
->getMessage(),
)), 'error');
watchdog_exception('mandrill', $e);
}
return $result;
}