I am trying to edit the 'email' field to change it to a second alternate e-mail address made up of field5@field6. Anyone have any ideas? This line of code is what I am interested in modifying: vbmail($subscription['email'], $subject, $message);
PHP Code:
$subscriptions = $db->query("
SELECT subscriptions.userid, username, email
FROM " . ADV_DYNA_TABLE_PREFIX . "subscribeentry AS subscriptions
INNER JOIN " . TABLE_PREFIX . "user AS user ON (subscriptions.userid = user.userid)
WHERE entryid = '$entryid' AND user.lastactivity > '$entry[dateline]' AND subscriptions.userid != '$userid'
");
while ($subscription = $db->fetch_array($subscriptions))
{
eval(fetch_email_phrases(ADV_DYNA_PREFIX . '_subscribe_entry2', 0));
vbmail($subscription['email'], $subject, $message);
}
}
?>