]> ruin.nu Git - ndwebbie.git/blobdiff - lib/NDWeb/Controller/Users.pm
Use localhost for mail
[ndwebbie.git] / lib / NDWeb / Controller / Users.pm
index efb48d3fd155e0e718c83f860a93a6dfd048662a..4ae8d54450f033fe1dbdd5a6d62d666d93e1339c 100644 (file)
@@ -169,7 +169,7 @@ sub postmail : Local {
        }
 
        my %mail = (
-               smtp => 'ruin.nu',
+               smtp => 'localhost',
                BCC      => (join ',',@emails),
                From    => 'NewDawn Command <nd@ruin.nu>',
                'Content-type' => 'text/plain; charset="UTF-8"',
@@ -216,6 +216,8 @@ ORDER BY time desc
                });
        $query->execute;
        $c->stash(sms => $query->fetchall_arrayref({}));
+
+       $c->stash(credits => $dbh->selectrow_array(q{SELECT credits FROM clickatell}));
 }
 
 sub postsms : Local {