more cleanup

This commit is contained in:
typpo 2012-05-16 15:25:12 -04:00
parent 57f376ece9
commit e2ac6e55e5

6
app.js
View File

@ -117,20 +117,14 @@ function stripPhone(phone) {
return (phone+'').replace(/\D/g, '');
}
function validatePhone(phone) {
}
function sendText(phone, message, cb) {
console.log('txting phone', phone);
console.log('msg', message);
var done = _.after(providers.length, function() {
cb(false);
});
_.each(providers, function(provider) {
var email = provider.replace('%s', phone);
var child = spawn('sendmail', ['-f', 'txt@textbelt.com', email]);