tomsch
06-08-2014, 12:55 AM
here is the code I would like to modify its is from reminder.php
vbmail_start();
$usernames = '';
$reminderbits = '';
foreach ($eventlist AS $userid => $event)
{
$usernames .= iif($usernames, ', ');
$usernames .= $userinfo["$userid"]['username'];
$reminderbits = '';
foreach($event AS $eventid => $hour)
{
$eventinfo =& $eventcache["$eventid"];
eval(fetch_email_phrases('reminderbit', $userinfo["$userid"]['languageid']));
$reminderbits .= $message;
}
$username = unhtmlspecialchars($userinfo["$userid"]['username']);
eval(fetch_email_phrases('reminder', $userinfo["$userid"]['languageid']));
vbmail($userinfo["$userid"]['email'], $subject, $message, true);
if ($vbulletin->debug AND VB_AREA == 'AdminCP')
{
"<pre>"; echo $subject; echo "</pre>"; echo "<pre>"; echo $message; echo "</pre><br />";
}
}
vbmail_end();
what I want to do is send an e-mail to every user about the event instead of only a subscribed user.
I know with a few weeks of trial and error I could kludge a fix. but if anyone could help I would greatly appreciate it.
vbmail_start();
$usernames = '';
$reminderbits = '';
foreach ($eventlist AS $userid => $event)
{
$usernames .= iif($usernames, ', ');
$usernames .= $userinfo["$userid"]['username'];
$reminderbits = '';
foreach($event AS $eventid => $hour)
{
$eventinfo =& $eventcache["$eventid"];
eval(fetch_email_phrases('reminderbit', $userinfo["$userid"]['languageid']));
$reminderbits .= $message;
}
$username = unhtmlspecialchars($userinfo["$userid"]['username']);
eval(fetch_email_phrases('reminder', $userinfo["$userid"]['languageid']));
vbmail($userinfo["$userid"]['email'], $subject, $message, true);
if ($vbulletin->debug AND VB_AREA == 'AdminCP')
{
"<pre>"; echo $subject; echo "</pre>"; echo "<pre>"; echo $message; echo "</pre><br />";
}
}
vbmail_end();
what I want to do is send an e-mail to every user about the event instead of only a subscribed user.
I know with a few weeks of trial and error I could kludge a fix. but if anyone could help I would greatly appreciate it.