0
所以我使用Drupal的6 queue_mail
模块,每次我调用该函数queue_mail_send()
,Drupal的抱怨说,它无法找到该功能没有找到,如何解决函数在Drupal 6
我知道Drupal 7中有代码注册表,但Drupal 6又如何?我如何让Drupal 6识别该函数而不是返回致命错误?
所以我使用Drupal的6 queue_mail
模块,每次我调用该函数queue_mail_send()
,Drupal的抱怨说,它无法找到该功能没有找到,如何解决函数在Drupal 6
我知道Drupal 7中有代码注册表,但Drupal 6又如何?我如何让Drupal 6识别该函数而不是返回致命错误?
我在新的drupal 6安装中测试了它,它为我提供了这个功能。仔细检查模块是否已启用,以及所有这些好东西。
然后,请确保您的$message
传递到queue_mail_send($message = array())
功能数组有以下几个要素:
例如,这里是我如何构造我的$消息数组:
$message = array(
'to' => '[email protected]',
'subject' => 'example',
'body' => 'hey',
'headers' => array(
'From' => '[email protected]',
'Reply-To' => 'Reply-To: [email protected]',
'X-Mailer' => 'PHP',
)
);