Quote:
Originally Posted by Delphiprogrammi
hi people,
I'm verry sorry but i don't get this.I'm trying to send an email through a vbulletin hook.The hook is "report_send_email" and i have a setting in my modification wheter users want to receive the emails so first some checking is needed ......
PHP Code:
if (!$vbulletin->options['postreports_enabled'] || ($vbulletin->options['postreports_enabled'] && $vbulletin->options['postreports_alsoemail']))
{
vbmail($moderator['email'], $subject, $message, true);
}
no errors at all but no emails either.my ideas are up....
|
$subject and $message variables are empty when this hook runs. Populate them first:
eval(fetch_email_phrases('myemailphrases', $email_langid));