mail_debugger.module in Mail Debugger 7
File
mail_debugger.module
View source
<?php
function mail_debugger_menu() {
return array(
'admin/people/mail_debugger' => array(
'title' => "Mail debugger",
'description' => "Test the mail interface",
'page arguments' => array(
'mail_debugger_callback',
),
'page callback' => 'drupal_get_form',
'access arguments' => array(
'administer users',
),
'file' => 'includes/mail_debugger.callback.inc',
'type' => MENU_LOCAL_TASK,
'weight' => 100,
),
);
}
function mail_debugger_mail($key, &$message, $params) {
switch ($key) {
case 'custom_mail':
$message['body'] = array(
$params['body'],
);
$message['subject'] = $params['subject'];
break;
default:
break;
}
}