SourceTable = $objSession->GetEditTable("PortalUser");
$objEditItems->EnablePaging = FALSE;
$GroupCount = 0;
if (isset($_POST["itemlist"]))
{
if(is_array($_POST["itemlist"]))
{
$UserList = implode(",",$_POST["itemlist"]);
$UserCount = count($_POST["itemlist"]);
}
else
{
$a = explode($_POST["itemlist"]);
$userCount = count($a);
unset($a);
$UserList = $_POST["itemlist"];
}
if($itemcount>1)
{
if ($en+1 == $itemcount)
$en_next = -1;
else
$en_next = $en+1;
if ($en == 0)
$en_prev = -1;
else
$en_prev = $en-1;
}
$action = "m_sendmail";
}
$envar = "env=" . BuildEnv();
$section = 'in-portal:edituser_sendmail';
$title = prompt_language("la_Text_Send")." ".prompt_language("la_Text_Email")." ".prompt_language("la_Text_To")." $UserCount ".prompt_language("la_Text_Users");
echo $envar."
\n";
//Display header
$sec = $objSections->GetSection($section);
int_header(NULL,NULL,$title);
?>