From da2fd044fce8bd3cc5eb4456c28414286d409df8 Mon Sep 17 00:00:00 2001 From: Ian Date: Tue, 10 Mar 2015 23:51:52 -0700 Subject: [PATCH] Set a default 'from' address that is not textbelt.com --- lib/text.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/text.js b/lib/text.js index c71df37..dd6a462 100644 --- a/lib/text.js +++ b/lib/text.js @@ -4,6 +4,7 @@ var providers = require('./providers.js') , spawn = require('child_process').spawn; var debugEnabled = false; +var fromAddress = 'foo@bar.com'; //---------------------------------------------------------------- /* @@ -56,7 +57,7 @@ function sendText(phone, message, region, cb) { _.each(providers_list, function(provider) { var email = provider.replace('%s', phone); email = 'Subject: Text\r\n\r\n' + email; - var child = spawn('sendmail', ['-f', 'txt2@textbelt.com', email]); + var child = spawn('sendmail', ['-f', fromAddress, email]); child.stdout.on('data', output); child.stderr.on('data', output); child.on('error', function(data) {