You are here

function mimemail_get_engines in Mime Mail 5

Same name and namespace in other branches
  1. 6 mimemail.module \mimemail_get_engines()
  2. 7 mimemail.module \mimemail_get_engines()

Retreives a list of all available mailer engines.

Return value

An array of mailer engine names.

1 call to mimemail_get_engines()
mimemail_settings in ./mimemail.module
Administration settings.

File

./mimemail.module, line 279
Component module for sending Mime-encoded emails.

Code

function mimemail_get_engines() {
  $engines = array();
  foreach (module_implements('mailengine') as $module) {
    $function = $module . '_mailengine';
    if (function_exists($function)) {
      $engines[$module] = $function('name') . ' - ' . $function('description');
    }
  }
  return $engines;
}