From e55a7160b06df554ca2c7ccd783474b916635ff0 Mon Sep 17 00:00:00 2001 From: dirk Date: Tue, 22 Nov 2011 22:38:58 +0100 Subject: bug827 script to send mails ... needs to be modified before start --- scripts/send_thawte.php.txt | 85 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 scripts/send_thawte.php.txt (limited to 'scripts/send_thawte.php.txt') diff --git a/scripts/send_thawte.php.txt b/scripts/send_thawte.php.txt new file mode 100644 index 0000000..f8042ac --- /dev/null +++ b/scripts/send_thawte.php.txt @@ -0,0 +1,85 @@ +#!/usr/bin/php -q + $lastid order by id"; + + $res = mysql_query($query); + $xrows = mysql_num_rows($res); + + while($row = mysql_fetch_assoc($res)) + { + $mailtxt = "Hello ".$row["fromname"]." ".$row["lastname"]."\n".$lines_EN."\n\n"; + switch ($row[$language]) + { + case "de_DE": $mailtxt .= $lines_DE; break; + case "ade_DE": $mailtxt .= $lines_DE; break; + case "bde_DE": $mailtxt .= $lines_DE; break; + case "cde_DE": $mailtxt .= $lines_DE; break; + case "dde_DE": $mailtxt .= $lines_DE; break; + case "ede_DE": $mailtxt .= $lines_DE; break; + } + // uncomment next line to send mails ... +// sendmail($row['email'], "[CAcert.org] $subject", $mailtxt, "mailing@cacert.org", "", "", "CAcert", "returns@cacert.org", 1); + $fp = fopen("lastid.txt", "w"); + fputs($fp, $row["id"]."\n"); + fclose($fp); + sleep (1); + echo "Sent mail to: ".$row["id"]; + } +?> -- cgit v1.2.1