diff --git a/phpmailer.module b/phpmailer.module
index 8ad2f2c..42faeb8 100644
--- a/phpmailer.module
+++ b/phpmailer.module
@@ -78,12 +78,12 @@ if (phpmailer_enabled() && !function_exists('drupal_mail_wrapper')) {
  */
 function phpmailer_mailengine($op, $message = array()) {
   switch ($op) {
-    case 'name':
-      return t('PHPMailer');
-
-    case 'description':
-      return t('Mailing engine using the PHPMailer library.');
-
+    case 'list':
+      $engine = array(
+        'name' =>t('PHPMailer'),
+        'description' => t('Mailing engine using the PHPMailer library.'),
+      );
+      return $engine;
     case 'settings':
       $form['info']['#value'] = t('To configure your mail server settings, visit the <a href="@url">PHPMailer settings page</a>.', array('@url' => url('admin/settings/phpmailer')));
       return $form;
