1.20.x drupal.inc drupal_mail($module, $key, $to, $language, $params = array(), $from = NULL, $send = TRUE)

Composes and optionally sends an e-mail message.

Deprecated

since 1.0.0

See also

backdrop_mail()

Related topics

File

includes/drupal.inc, line 2073
Contains constants and function wrappers for Drupal 7.x compatibility.

Code

function drupal_mail($module, $key, $to, $language, $params = array(), $from = NULL, $send = TRUE) {
  watchdog_deprecated_function('drupal', __FUNCTION__);
  return backdrop_mail($module, $key, $to, $language, $params, $from, $send);
}