function mandrill_get_inbound_domains in Mandrill 7.2
Same name and namespace in other branches
- 8 mandrill.module \mandrill_get_inbound_domains()
Get a list of inbound email domains.
File
- ./
mandrill.module, line 474 - Enables Drupal to send email directly through Mandrill.
Code
function mandrill_get_inbound_domains() {
$domains = array();
try {
if ($mandrill = mandrill_get_api_object()) {
$domains = $mandrill->inbound
->domains();
}
else {
$domains = FALSE;
}
} catch (Mandrill_Error $e) {
drupal_set_message(t('Mandrill: %message', array(
'%message' => $e
->getMessage(),
)), 'error');
watchdog_exception('mandrill', $e);
}
return $domains;
}