root@9: 'DefaultMailSystem'). root@9: * This module uses array('default-system' => 'SmtpMailSystem'). root@9: */ root@9: root@9: /** root@9: * Implements hook_help(). root@9: */ root@9: function smtp_help($path, $arg) { root@9: switch ($path) { root@9: case 'admin/help#smtp': root@9: return t('Allow for site emails to be sent through an SMTP server of your choice.'); root@9: } root@9: } root@9: root@9: /** root@9: * Implements hook_menu(). root@9: */ root@9: function smtp_menu() { root@9: $items['admin/config/system/smtp'] = array( root@9: 'title' => 'SMTP Authentication Support', root@9: 'page callback' => 'drupal_get_form', root@9: 'page arguments' => array('smtp_admin_settings'), root@9: 'access arguments' => array('administer smtp module'), root@9: 'description' => 'Allow for site emails to be sent through an SMTP server of your choice.', root@9: 'file' => 'smtp.admin.inc', root@9: ); root@9: return $items; root@9: } root@9: root@9: /** root@9: * Implements hook_permission(). root@9: */ root@9: function smtp_permission() { root@9: return array( root@9: 'administer smtp module' => array( root@9: 'title' => t('Administer SMTP Authentication Support module'), root@9: 'description' => t('Perform administration tasks for SMTP Authentication Support module.')) root@9: ); root@9: } root@9: root@9: root@9: /** root@9: * Implements hook_mail(). root@9: */ root@9: function smtp_mail($key, &$message, $params) { root@9: if ($key == 'smtp-test') { root@9: $message['subject'] = $params['subject']; root@9: $message['body'] = $params['body']; root@9: } root@9: }