PHP
<?php
elseif($data->admin == 1)
{
<div class="title_bg">
<div class="title">Massa Mail Nieuwsbrief</div>
</div>
<div style="background-color:#dbd2b7;
padding:10px; padding-top:4px;">
<table cellpadding="0" cellspacing="0" width="100%"><tr><td>
<div id="flashcontent">
<?
//Daardwerkelijk versturen van de mailing
if (isset($_POST['mailing']))
{
$rMember = mysql_query("SELECT login, email FROM `users` WHERE `nieuwsbrief` = 1");
while ($aMember = mysql_fetch_assoc($rMember))
{
$sBericht = $_POST['mailing'];
$sBericht = str_replace('{naam}', $aMember['login'], $sBericht);
$sBericht = str_replace('{sitelink}', $sitelink, $sBericht);
@mail($aMember['email'], $_POST['titel'], $sBericht, 'From:Mobstarz.nl Online Maffia Spel <[email protected]>');
echo 'verzonden';
}
}
else
//weergave mailing-sjabloon
{
?>
<script language="javascript">
function icon(theicon)
{
document.form.mailing.value += ""+theicon;
document.form.mailing.focus();
}
</script>
<link rel="stylesheet" type="text/css" href="<?php echo $sitelink;?>/layout/layout<?php echo $page->layout; ?>/css/css.css">
<form method="post" action="" name="form">
<table align="center" width=100%>
<tr>
<td class="subTitle">Massa Email - Nieuwsbrief</b></td>
</tr>
<tr>
<td class=mainTxt>
<input type="button" value="Afmeld link" style="font-weight:bold; width: 100px" onClick="javascript:icon('Afmelden kan via : {sitelink}/v3/index.php?a=afmelden')">
<input type="button" value="Naam lid" style="font-weight:bold; width: 100px" onClick="javascript:icon('{naam}')">
</td>
</tr>
<tr>
<td class="mainTxt">
Titel: <input type="text" name="titel" value="<?php $title; ?>Mobstarz.nl Nieuwsbrief">
Bericht:<br>
<textarea cols=40 rows=10 name="mailing"></textarea>
<input type="submit" value="Verstuur" name="submit">
</td>
</tr>
</table>
</form>
<?php
}
?>
</td></tr></table>
</div>
<table width='100%' cellspacing='2' cellpadding='2'>
<tr>
<td class='content_bottom'></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</td>
}
Toon Meer
ik had dit geprobeerd , maar dit werkt niet
weet iemand hoe dit wel gaat werken?