Script PHP HomePage Massive E-Mail

11/21/2013 22:09 asusta099#1
Hi, Epvp

Mein Skript ist in PHP für eine mail alle Anwender ist der Server Metin2 oder andere Gameplay senden an: D


Wie funktioniert es?

The user session is only in the page
Quote:
<?PHP
if($_SESSION['user_admin']>=$adminRights['acc_suche']) {

if(!isset($_GET['filter']) && empty($_GET['filter'])) {
$_GET['filter']='';
$url_extension = '';
}
else {
$url_extension = '&filter='.$_GET['filter'];
}
?>
Der Code PHP ist eine Ergänzung, um den Benutzer in der Datenbank in Englisch zu sehen.

Quote:
<h2>Admin - User</h2>
<p>Here accounts or accountIds search. <br/> If an empty list is entered again, the full list on the screen. </ P> <form action="index.php" method="GET">
<input type="hidden" name="s" value="admin"/>
<input type="hidden" name="a" value="user"/>
<table>
<tr>
<th class="topLine">Search (Account / Account-ID):</th>
<td class="topLine"><input type="text" name="filter" value="<?PHP if(isset($_GET['filter'])) echo $_GET["filter"]; ?>" size="40" maxlength="16"/></td>
<td class="topLine"><input type="submit" name="submit" value="suchen"/></td>
</tr>
</table>
</form>
<?PHP

$sqlCmd = "SELECT COUNT(*) AS anzEintr FROM account.account WHERE login LIKE '%".mysql_real_escape_string($_GET['filter'])."%' OR id='".mysql_real_escape_string($_GET['filter'])."' ORDER BY login ASC";
$sqlQry = mysql_query($sqlCmd,$sqlServ);
$getAnz = mysql_fetch_object($sqlQry);
$cntEintraege = $getAnz->anzEintr;
if(isset($_GET['p'])) {
$aktSeite = (!checkInt($_GET['p'])) ? 0 : $_GET['p'];
}
else {
$aktSeite=0;
}
if($aktSeite==0) $aktSeite=1;
$test = calcPages($cntEintraege,$aktSeite,$serverSettings['page_entries']);

$sqlCmd = "SELECT email FROM account.account WHERE login LIKE '%".mysql_real_escape_string($_GET['filter'])."%' OR id='".mysql_real_escape_string($_GET['filter'])."' ORDER BY login ASC LIMIT ".$test[1].",".$serverSettings['page_entries'];

$sqlQry = mysql_query($sqlCmd,$sqlServ);
echo'Aktueller Filter: &laquo;<b>'.$_GET['filter'].'</b>&raquo;';
echo'<p>Seite: ';
for($i=1;$i<=$test[0];$i++) {

echo'<a href="index.php?s=admin&a=user'.$url_extension.'&p ='.$i.'">';
if($aktSeite==$i) { echo'<u>'.$i.'</u>'; }
else { echo $i; }
echo'</a> ';

}
echo'</p>';

?>
Das Skript verwenden Sie eine Sequenz. Sie müssen ändern "YourIPoftheserver" ist, dass Sie in ip-Server Metin2 oder anderen Server. Wenn die conection der Datenbank falsch ist, legte das Skript ein Fehler in der Datenbank.

Quote:
mysql_conect("YourIPoftheserver","root")or die ("Connection is not the message will come out in English".mysql_error());
mysql_select_db("account")or die("You have no database connection".mysql_error());
Das Skript wählen Sie eine Tabelle in Ihrer Datenbank in dem Fall ist account.account. Ich erkläre im Angebot
Quote:
$re=mysql_query("SELECT email FROM account.account");//Wählen Datenbank
while($f=mysql_fetch_array($re)){
$para=$f['email'];////Feld, um die E-Mail-Adresse oder Bereich greifen
$serverSettings=$f['titel']."Title your menssage"///Titel der Nachricht
$nombre=$f['login'];///Name des Benutzers in der Mitteilung.
Um Bilder setzen wir den folgenden

Quote:

<img src="http://yourdomain.com/img/event/eventsm.jpg">

Ist wichtig, Ihr Bild in einer Domäne.

<img src=""> Ist eine Richtung von Link.
Wichtig ist die E-Mail im HTML-, ist eine andere Ergänzung im Skript die Meldung in html. Es wird im Format html organisiert. Es wird, was es fordert. Ich lasse ein Beispiel

Quote:
<table>
<tr>
<th class="topLine">E-Mail</th>
</tr>
<?php
$cab."Content-type: text/html\r\n";
$cab.'From: [Only registered and activated users can see links. Click Here To Register...]';
mysql_conect("YourIPoftheserver","root")or die ("Connection is not the message will come out in English".mysql_error());
mysql_select_db("account")or die("You have no database connection".mysql_error());
$re=mysql_query("SELECT email FROM account.account");
while($f=mysql_fetch_array($re)){
$para=$f['email'];
$serverSettings=$f['titel']."Title your menssage"
$nombre=$f['login'];
$msj='
Estimated:'.$login.'<br>
<br>Hi user Metin2</br>

<p>Metin2 invites you to play their only dedicated servers .</p>

What do you expect to play?

Today we have more stable servers and a staff fully responsible . Thanks to the great experiences we've been buying this year for their services .

If you keep playing Metin2 thank you for your faithfulness . I 've noticed that the server is already stable .
If you keep playing you are welcome to return to see that everything has improved. And now we are great .

We have dedicated servers. Accommodation web .
And two great programmers who are 24 -hour servers attentive to Metin2. Not all.
<p>We are also looking at the possibility of increasing the server attentive programmers and designers.</p>

The experiences have given us strength and s not only that. We can also say that thanks to donations that have been put by the players continue to improve .

We implement everything new official servers and combine with private servers while retaining the official style . Without losing that style.

<br>Metin2 invites you to its apogee.</br>

<p>Pages:</p>

[Only registered and activated users can see links. Click Here To Register...]


<img src="http://yourdomain.com/img/event/eventsm.jpg">
Please do not answer this message. It is an email blast created by a PHP script code.


';
mail($para, "invitacion",$msj,$cab);
echo $para.'<br>';
echo $msj.'<br><br>',
}
<?PHP
$x=0;
while($getAccs=mysql_fetch_object($sqlQry))
{
if(($x%2)==0)
{
$zF="tdunkel";
}
else
{
$zF="thell";
}


echo"
<tr>
<td class=\"$zF\">".$getAccs->email."</td>\n
</tr>\n";
$x++;
}
?>
</table>
<?PHP
}
else {
echo'<p class="meldung">¡It has no connection to the db!</p>';
}
?>

Der Code aussehen würde

Quote:
<?PHP
if($_SESSION['user_admin']>=$adminRights['acc_suche']) {

if(!isset($_GET['filter']) && empty($_GET['filter'])) {
$_GET['filter']='';
$url_extension = '';
}
else {
$url_extension = '&filter='.$_GET['filter'];
}
?>
<h2>Admin - User</h2>
<p>Here accounts or accountIds search. <br/> If an empty list is entered again, the full list on the screen. </ P> <form action="index.php" method="GET">
<input type="hidden" name="s" value="admin"/>
<input type="hidden" name="a" value="user"/>
<table>
<tr>
<th class="topLine">Search (Account / Account-ID):</th>
<td class="topLine"><input type="text" name="filter" value="<?PHP if(isset($_GET['filter'])) echo $_GET["filter"]; ?>" size="40" maxlength="16"/></td>
<td class="topLine"><input type="submit" name="submit" value="suchen"/></td>
</tr>
</table>
</form>
<?PHP

$sqlCmd = "SELECT COUNT(*) AS anzEintr FROM account.account WHERE login LIKE '%".mysql_real_escape_string($_GET['filter'])."%' OR id='".mysql_real_escape_string($_GET['filter'])."' ORDER BY login ASC";
$sqlQry = mysql_query($sqlCmd,$sqlServ);
$getAnz = mysql_fetch_object($sqlQry);
$cntEintraege = $getAnz->anzEintr;
if(isset($_GET['p'])) {
$aktSeite = (!checkInt($_GET['p'])) ? 0 : $_GET['p'];
}
else {
$aktSeite=0;
}
if($aktSeite==0) $aktSeite=1;
$test = calcPages($cntEintraege,$aktSeite,$serverSettings['page_entries']);

$sqlCmd = "SELECT email FROM account.account WHERE login LIKE '%".mysql_real_escape_string($_GET['filter'])."%' OR id='".mysql_real_escape_string($_GET['filter'])."' ORDER BY login ASC LIMIT ".$test[1].",".$serverSettings['page_entries'];

$sqlQry = mysql_query($sqlCmd,$sqlServ);
echo'Aktueller Filter: &laquo;<b>'.$_GET['filter'].'</b>&raquo;';
echo'<p>Seite: ';
for($i=1;$i<=$test[0];$i++) {

echo'<a href="index.php?s=admin&a=user'.$url_extension.'&p ='.$i.'">';
if($aktSeite==$i) { echo'<u>'.$i.'</u>'; }
else { echo $i; }
echo'</a> ';

}
echo'</p>';

?>
<table>
<tr>
<th class="topLine">E-Mail</th>
</tr>
<?php
$cab."Content-type: text/html\r\n";
$cab.'From: [Only registered and activated users can see links. Click Here To Register...]';
mysql_conect("YourIPoftheserver","root")or die ("Connection is not the message will come out in English".mysql_error());
mysql_select_db("account")or die("You have no database connection".mysql_error());
$re=mysql_query("SELECT email FROM account.account");
while($f=mysql_fetch_array($re)){
$para=$f['email'];
$serverSettings=$f['titel']."Title your menssage"
$nombre=$f['login'];
$msj='
Estimated:'.$login.'<br>
<br>Hi user Metin2</br>

<p>Metin2 invites you to play their only dedicated servers .</p>

What do you expect to play?

Today we have more stable servers and a staff fully responsible . Thanks to the great experiences we've been buying this year for their services .

If you keep playing Metin2 thank you for your faithfulness . I 've noticed that the server is already stable .
If you keep playing you are welcome to return to see that everything has improved. And now we are great .

We have dedicated servers. Accommodation web .
And two great programmers who are 24 -hour servers attentive to Metin2. Not all.
<p>We are also looking at the possibility of increasing the server attentive programmers and designers.</p>

The experiences have given us strength and s not only that. We can also say that thanks to donations that have been put by the players continue to improve .

We implement everything new official servers and combine with private servers while retaining the official style . Without losing that style.

<br>Metin2 invites you to its apogee.</br>

<p>Pages:</p>

1and1.com - Professional solutions for Website, Domain, Hosting


<img src="http://yourdomain.com/img/event/eventsm.jpg">
Please do not answer this message. It is an email blast created by a PHP script code.


';
mail($para, "invitacion",$msj,$cab);
echo $para.'<br>';
echo $msj.'<br><br>',
}
<?PHP
$x=0;
while($getAccs=mysql_fetch_object($sqlQry))
{
if(($x%2)==0)
{
$zF="tdunkel";
}
else
{
$zF="thell";
}


echo"
<tr>
<td class=\"$zF\">".$getAccs->email."</td>\n
</tr>\n";
$x++;
}
?>
</table>
<?PHP
}
else {
echo'<p class="meldung">¡It has no connection to the db!</p>';
}
?>
Denken Sie daran, dass die Menge der E-Mail in Übereinstimmung mit Ihren DNS-Anbieter und das Skript sind automatisch gehen, um die Mail zu versenden.
Es kann auch erkennen, wie SPAM einigen Mail-Servern.
11/22/2013 08:13 .Ryu'#2
Nice thank u, But pls don't use Google Translater.
11/22/2013 09:55 xCPx#3
Sry, but that´s coded really crappy...
Sorry if i say that, but its the truth.
Pls just take a quick look at Zendmail.
With Zendmail you can send the mass-email in about 10 lines of code.
11/23/2013 02:33 asusta099#4
Quote:
Originally Posted by xCPx View Post
Sry, but that´s coded really crappy...
Sorry if i say that, but its the truth.
Pls just take a quick look at Zendmail.
With Zendmail you can send the mass-email in about 10 lines of code.
Es ist für diejenigen, die brauchen :P


Ryu i don't speak Germany.