Re: Setting up group mailer
| From: | Philip J. Newman | Date: | Thu, 14 Feb 2002 08:17:38 +0000 |
| Subject: | Re: Setting up group mailer | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-84705@lists.php.net to get a copy of this message | ||
My mail out script
<font size="5">Email 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 == "spam@philipsdomain.com") {
$email = "newmanpj@philipsdomain.com";
}
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: newmanpj@philipsdomain.com\n\n";
mail("$email", "Philip J. Newman", $msg, $mailheaders);
}
?>
----- Original Message -----
From: "Niklas Lampén" <niklas.lists@publico.fi>
To: "Php-General" <php-general@lists.php.net>
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:phantom@phantomcougar.com]
> Sent: 14. helmikuuta 2002 9:11
> To: php-general@lists.php.net
> Subject: [PHP] Setting up group mailer
>
>
> I am planning a script that will send mail to all my clients
> (potentially up to 10000, 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
>
>
>