sorry....
<$%#$#%$#%$!!!!! mail program>
I. got ML engine
<?
[.... topic/article create/update code ....]
$url = //set url for news
$adress = //set adress of Your ML
$message .= "New article!"."\n";
$message .= $url ."\n";
mail("$adress", "New article",
"
$message
\n
Your truly news admin :)."
,
"From: news@$SERVER_NAME\r\n"."sender: news@$SERVER_NAME\r\n");
?>
II. Got midgard users
<?
$users_group = // set group id
[.... topic/article create/update code ....]
$url = //set url for news
$adress = //set adress of Your ML
$message .= "New article!"."\n";
$message .= $url ."\n";
$news_group = mgd_list_members( $users_group );
while( $news_group->fetch() ) {
$person = mgd_get_person($news_group->uid);
mail("$person->email", "New article",
"
$message
\n
Your truly news admin :)."
,
"From: news@$SERVER_NAME\r\n"."sender: news@$SERVER_NAME\r\n");
}
?>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]