vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   sending emails in batchs (https://vborg.vbsupport.ru/showthread.php?t=164056)

Aur-Phala.Com 12-01-2007 05:14 PM

sending emails in batchs
 
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 Code:

<?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


All times are GMT. The time now is 07:12 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00941 seconds
  • Memory Usage 1,720KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete