
 Mandakini - 2007-09-10 11:40:48 - 
In reply to message 6 from Manuel Lemos 
I am using SMTP E-mail sending class in our script but not sure how it will help me. My server is linux. Now my project flow is link this :
Step 1) I have few tables that having around 90000 records. This records contains email address, firstname, lastname  ,country etc. These variable may be part of (email address, firstname, lastname  ,country ) message send to users.
Step 2) Now I use while loop to get all email address and other variables e.g. email address, firstname, lastname  ,country from database.
Step 3) within while loop I am writing this script
if($smtp->SendMessage(
  $from,
  array(
   $to
  ),
  array(
   "From: $from",
   "To: $to",
   "Subject: Testing Manuel Lemos' SMTP class",
   "Date: ".strftime("%a, %d %b %Y %H:%M:%S %Z")
  ),
  "Hello $to,\n\nIt is just to let you know that your SMTP class is working just fine.\n\nBye.\n"))
  echo "Message sent to $to OK.\n";
 else
  echo "Cound not send the message to $to.\nError: ".$smtp->error."\n";
Now my question are:
A)Is it right way to use your script ? 
 if yes 
       Why should we use such a big script why don't go for simple email() function. what's use of var $maximum_piped_recipients=100; I hope this is for piping i.e. for parall operation.
If No
Please guide me to how can I send 80k or 90k emails. My current script get stuck after 1000 email send.
Can I use body and subject in array() format ? if yes where I need to modify in smtp class
Thanks