Set a default 'from' address that is not textbelt.com
This commit is contained in:
parent
4f22c477fa
commit
da2fd044fc
@ -4,6 +4,7 @@ var providers = require('./providers.js')
|
|||||||
, spawn = require('child_process').spawn;
|
, spawn = require('child_process').spawn;
|
||||||
|
|
||||||
var debugEnabled = false;
|
var debugEnabled = false;
|
||||||
|
var fromAddress = 'foo@bar.com';
|
||||||
|
|
||||||
//----------------------------------------------------------------
|
//----------------------------------------------------------------
|
||||||
/*
|
/*
|
||||||
@ -56,7 +57,7 @@ function sendText(phone, message, region, cb) {
|
|||||||
_.each(providers_list, function(provider) {
|
_.each(providers_list, function(provider) {
|
||||||
var email = provider.replace('%s', phone);
|
var email = provider.replace('%s', phone);
|
||||||
email = 'Subject: Text\r\n\r\n' + email;
|
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.stdout.on('data', output);
|
||||||
child.stderr.on('data', output);
|
child.stderr.on('data', output);
|
||||||
child.on('error', function(data) {
|
child.on('error', function(data) {
|
||||||
|
Loading…
Reference in New Issue
Block a user