Manuel Lemos - 2007-07-01 18:06:14 - In reply to message 1 from Hugo Barreiros
You should provide the recipients as separate entries of the recipients array argument of the SendMessage call.
Anyway, it is more recommended that you use the MIME message class to compose the messages correctly according to the mail standards. It comes with smtp_message_class that uses the smtp_class to deliver messages.
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
"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";
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 ?
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.
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