So I’m using the queue_mail module on Drupal 6 and everytime I call the function queue_mail_send(), drupal complains that it can’t find the function…
I know that there’s a code registry in Drupal 7, but what about Drupal 6? how do I get Drupal 6 to recognize that function instead of returning a fatal error?
I tested this out on a fresh drupal 6 install and it picked up the function for me. Just double check that the module is enabled and all of that good stuff.
Then, make sure that your
$messagearray that is passed intoqueue_mail_send($message = array())function has these elements:For example, here’s how I constructed my $message array: