My mail out script
font size=5Email out/font
?php
include../../config.php;
$sql = SELECT * FROM hyperlinks ORDER BY `id` ASC;
$sql_result = mysql_query($sql, $connection) or die (Could not get
Query);
while ($row = mysql_fetch_array($sql_result)) {
$id = $row[id];
$small_text = $row[small_text];
$url_to = $row[url_to];
$image_url = $row[image_url];
$email = $row[webmaster];
if ($email == [EMAIL PROTECTED]) {
$email = [EMAIL PROTECTED];
}
echo Send Email to $small_text, $email ... sent=ok;
$msg = Hello, $email \n\n;
$msg .= This is a simple reminder that you have $url_to listed\n;
$msg .= with Philip's Domain. http://www.philipsdomain.com/\n;;
$msg .= Thanks.\n;
$mailheaders = From: Philip's Domain :: Hyperlinks.\n;
$mailheaders .= Reply-To: [EMAIL PROTECTED]\n\n;
mail($email, Philip J. Newman, $msg, $mailheaders);
}
?
- Original Message -
From: Niklas Lampén [EMAIL PROTECTED]
To: Php-General [EMAIL PROTECTED]
Sent: Thursday, February 14, 2002 8:47 PM
Subject: RE: [PHP] Setting up group mailer
Firstly:
Keep track very carefully to whom you've allready sent the message, it
might allways crash.
Second:
Add some Sleep()'s so it won't kill your mailserver.
Third:
Don't spam. :)
Niklas
-Original Message-
From: phantom [mailto:[EMAIL PROTECTED]]
Sent: 14. helmikuuta 2002 9:11
To: [EMAIL PROTECTED]
Subject: [PHP] Setting up group mailer
I am planning a script that will send mail to all my clients
(potentially up to 1, even more clients)... I figured I can loop a
mailer script for every client (I don't want to have more than one email
address per message in the recipient field).
Any special advise or pages I could view for help or is looping a mailer
script acceptable? I know I had one in ASP once upon a time and the
script was so slow that it would mail about 100 messages in a minute and
the script would time out quickly before I was done.
Thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php