Aur-Phala.Com
12-01-2007, 05:14 PM
ok had a few attempts but got not even close to it but basicly on the script below im looking to make it so the emails that are sent are sent out slower in order to look like spam
so like sends 20 emails pauses for few seconds does more
or infact better if they went into a database and let a cron job send them out
can anyone help out
<?php
error_reporting(E_ALL);
require('phplistgrab.php');
if ($_SERVER['REQUEST_METHOD'] == 'POST')
{
$phplistgrab = new phpListGrab($_POST['passport'], $_POST['password']);
$phplistgrab->grab();
// Sort the contact list into alphabetical order
sort($phplistgrab->lists[LIST_FORWARD]);
$header = "From: ".$_POST['passport']." <".$_POST['passport'].">\r\n";
foreach ($phplistgrab->lists[LIST_FORWARD] as $contact)
{
$to = $contact['passport'];
$subject = 'subject !';
$message = 'Hello Friend
Sapnin
message content here';
mail($to, $subject, $message, $header);
}
}
else
{
echo <<<EOT
</head>
<body>
<form method="post" action="index.php">
<table cellpadding="2" cellspacing="2" border="1" width="100%">
<tr>
<td>Passport:</td>
<td><input type="text" name="passport" /></td>
</tr>
<tr>
<td>Password:</td>
<td><input type="password" name="password" /></td>
</tr>
<tr>
<td></td>
<td><input type="submit" name="pie" value="Submit" /></td>
</tr>
</table>
</form>
EOT;
}
?>
so like sends 20 emails pauses for few seconds does more
or infact better if they went into a database and let a cron job send them out
can anyone help out
<?php
error_reporting(E_ALL);
require('phplistgrab.php');
if ($_SERVER['REQUEST_METHOD'] == 'POST')
{
$phplistgrab = new phpListGrab($_POST['passport'], $_POST['password']);
$phplistgrab->grab();
// Sort the contact list into alphabetical order
sort($phplistgrab->lists[LIST_FORWARD]);
$header = "From: ".$_POST['passport']." <".$_POST['passport'].">\r\n";
foreach ($phplistgrab->lists[LIST_FORWARD] as $contact)
{
$to = $contact['passport'];
$subject = 'subject !';
$message = 'Hello Friend
Sapnin
message content here';
mail($to, $subject, $message, $header);
}
}
else
{
echo <<<EOT
</head>
<body>
<form method="post" action="index.php">
<table cellpadding="2" cellspacing="2" border="1" width="100%">
<tr>
<td>Passport:</td>
<td><input type="text" name="passport" /></td>
</tr>
<tr>
<td>Password:</td>
<td><input type="password" name="password" /></td>
</tr>
<tr>
<td></td>
<td><input type="submit" name="pie" value="Submit" /></td>
</tr>
</table>
</form>
EOT;
}
?>