I have an automatted post in a forum I have this set on using the following code
Code:
<?
// chdir('./forums');
require_once('./global.php');
require_once('./includes/class_dm.php');
require_once('./includes/class_dm_threadpost.php');
require_once('./includes/functions_databuild.php');
$threaddm = new vB_DataManager_Thread_FirstPost($vbulletin, ERRTYPE_STANDARD);
$forumid = 209;
$postuserid = 3;
$userid = 3;
$username = 'linnov';
$pagetext = 'Testing 123 ';
$title = 'Test Post ';
$allowsmilie = '1';
$visible = '1';
$threadinfo = fetch_threadinfo($postthreadid);
$foruminfo = fetch_foruminfo($threadinfo['forumid']);
$threaddm->do_set('forumid', $forumid);
$threaddm->do_set('postuserid', $postuserid);
$threaddm->do_set('userid', $userid);
$threaddm->do_set('username', $username);
$threaddm->do_set('pagetext', $pagetext);
$threaddm->do_set('title', $title);
$threaddm->set('allowsmilie', $allowsmilie);
$threaddm->set('visible', $visible);
$threaddm->save();
build_forum_counters($forumid);
?>
The problem is the email is not generated so I'm thinking I need to call some other function within the script in order for the email to occurr
It does email if I create a new thread from within the forum.
Anyone have any ideas?