diff --git a/trunk/data/%%3A^3A4^3A4E0A75%%checkmail.tpl.php b/trunk/data/%%3A^3A4^3A4E0A75%%checkmail.tpl.php
index 8b57b17..58e17da 100644
--- a/trunk/data/%%3A^3A4^3A4E0A75%%checkmail.tpl.php
+++ b/trunk/data/%%3A^3A4^3A4E0A75%%checkmail.tpl.php
@@ -1,4 +1,4 @@
-
_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.tpl", 'smarty_include_vars' => array()));
diff --git a/trunk/data/%%45^45E^45E480CD%%index.tpl.php b/trunk/data/%%45^45E^45E480CD%%index.tpl.php
index c0426f6..3995b67 100644
--- a/trunk/data/%%45^45E^45E480CD%%index.tpl.php
+++ b/trunk/data/%%45^45E^45E480CD%%index.tpl.php
@@ -1,4 +1,4 @@
-
_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.tpl", 'smarty_include_vars' => array()));
@@ -57,6 +57,8 @@ unset($_smarty_tpl_vars);
Recent site updates
+ - May 2008Now has 250 Local authorities covered
+ - July 2007Shortlisted for New Statesman New Media Award
- July 2007Added 21 councils inc. Lewisham, New Forest National Park and Edinburgh
- April 2007Added 50 more councils.
-
- March 2007 Added an API and a few more councils (inc. Islington and Hackney)
diff --git a/trunk/data/%%A4^A42^A42CC6E6%%confirm_email_text.tpl.php b/trunk/data/%%A4^A42^A42CC6E6%%confirm_email_text.tpl.php
index 0f4e9d6..c1db7b1 100644
--- a/trunk/data/%%A4^A42^A42CC6E6%%confirm_email_text.tpl.php
+++ b/trunk/data/%%A4^A42^A42CC6E6%%confirm_email_text.tpl.php
@@ -1,4 +1,4 @@
-
array(array('block', 'textformat', 'confirm_email_text.tpl', 1, false),)), $this); ?>
diff --git a/trunk/data/%%F7^F75^F752BDC0%%getinvolved.tpl.php b/trunk/data/%%F7^F75^F752BDC0%%getinvolved.tpl.php
index d530b8c..eeb9c80 100644
--- a/trunk/data/%%F7^F75^F752BDC0%%getinvolved.tpl.php
+++ b/trunk/data/%%F7^F75^F752BDC0%%getinvolved.tpl.php
@@ -1,4 +1,4 @@
-
_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.tpl", 'smarty_include_vars' => array()));
diff --git a/trunk/data/%%F7^F7F^F7F34188%%header.tpl.php b/trunk/data/%%F7^F7F^F7F34188%%header.tpl.php
index a3c442c..2829410 100644
--- a/trunk/data/%%F7^F7F^F7F34188%%header.tpl.php
+++ b/trunk/data/%%F7^F7F^F7F34188%%header.tpl.php
@@ -1,4 +1,4 @@
-
diff --git a/trunk/docs/templates/news_mail.tpl b/trunk/docs/templates/news_mail.tpl
new file mode 100644
index 0000000..e246d3e
--- /dev/null
+++ b/trunk/docs/templates/news_mail.tpl
@@ -0,0 +1,19 @@
+{textformat style='email'}
+Hello,
+
+This is a one off email to let you know about a new local information website I've built on top of PlanningAlerts:
+
+http://www.streetwire.org
+
+StreetWire is like PlanningAlerts for every kind of local information. As well as planning applications, it will tell you about licensing applications, crime, events and local news near you.
+
+You can also share news with your neighbours, so If you know some little tipbit of local news, or want to tell your neighbours about an event it helps conenct you with your neighbours.
+
+You can signup here:
+
+http://www.streetwire.org
+
+All the best,
+
+Richard Pope (volunteer PlanningAlerts.com)
+{/textformat}
\ No newline at end of file
diff --git a/trunk/tools/application_mailer.php b/trunk/tools/application_mailer.php
index 25c052a..29cdde3 100644
--- a/trunk/tools/application_mailer.php
+++ b/trunk/tools/application_mailer.php
@@ -18,7 +18,7 @@
//Run
function run (){
-
+
$db = DB::connect(DB_CONNECTION_STRING);
//Grab all the users
diff --git a/trunk/tools/news_mailer.php b/trunk/tools/news_mailer.php
new file mode 100644
index 0000000..8511e1d
--- /dev/null
+++ b/trunk/tools/news_mailer.php
@@ -0,0 +1,56 @@
+run();
+
+ //class
+ class news_mailer {
+
+ //Run
+ function run (){
+
+ $db = DB::connect(DB_CONNECTION_STRING);
+
+ //Grab all the users
+ $sql = "select user_id, email, postcode, bottom_left_x, bottom_left_y, top_right_x, top_right_y, alert_area_size, confirm_id
+ from user
+ where confirmed = 1 and user_id = 5959";
+
+ $user_results = $db->getAll($sql);
+
+ print "Found " . sizeof($user_results) . " to email ";
+
+ if(sizeof($user_results) > 0){
+
+ //Loop though users
+ for ($i=0; $i < sizeof($user_results); $i++){
+
+ //Smarty template
+ $smarty = new Smarty;
+ $smarty->force_compile = true;
+ $smarty->compile_dir = SMARTY_COMPILE_DIRECTORY;
+
+ //Get the email text
+ $email_text = $smarty->fetch(SMARTY_TEMPLATE_DIRECTORY . 'news_mail.tpl');
+
+ //Send the email
+ if($email_text !=""){
+ send_text_email($user_results[$i][1], EMAIL_FROM_NAME, EMAIL_FROM_ADDRESS, "StreetWire - a new service from PlanningAlerts", $email_text);
+ }
+
+ }
+
+ }
+
+ }
+
+ }
+
+ }
+
+?>
\ No newline at end of file