You are here

function system_service_mail in Services 5

Same name and namespace in other branches
  1. 6 services/system_service/system_service.inc \system_service_mail()
  2. 6.2 services/system_service/system_service.inc \system_service_mail()
  3. 7 services/system_service/system_service.inc \system_service_mail()

Send an email via the Services module.

1 string reference to 'system_service_mail'
system_service_service in services/system_service/system_service.module
Implementation of hook_service().

File

services/system_service/system_service.module, line 149
The module which exposes services related to system activies

Code

function system_service_mail($mailkey, $to, $subject, $body, $from = NULL, $headers = array()) {
  $status = drupal_mail($mailkey, $to, $subject, $body, $from, $headers);
  if (!$status) {
    return services_error(t('There was a problem sending your email.'));
  }
  return $status;
}