PDA

View Full Version : sending emails in batchs


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;

}

?>

Paul M
12-01-2007, 08:53 PM
<a href="https://vborg.vbsupport.ru/showthread.php?t=133844" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=133844</a>

Aur-Phala.Com
12-01-2007, 09:35 PM
this isnt a vbulletin script so wudnt work with the vbulletin cron based script correct?

3rd party