I have these two functions, the first is to send the email via drupal_mail() function :
function example_function_name($what) {
drupal_mail('MYMODULE', 'some_mail_key', '[email protected]', language_default());
}
And the second is the hook_mail function :
function MYMODULE_mail($key, $message, $params){
switch ($key){
case 'some_mail_key':
$message['subject'] = 'test subject';
$message['body'] = 'test body message';
break;
}
}
But I recieve a blank email in spam without neither subject, or body message. Is there somthing missing here ?
Thanks in advance.