Add subject - some providers include it in the delivered text and currently it says 'No subject'.

This commit is contained in:
Ian 2014-09-20 16:52:18 -07:00
parent 17a94d2a60
commit b033d3ac57

1
app.js
View File

@ -208,6 +208,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;
var child = spawn('sendmail', ['-f', 'txt2@textbelt.com', email]); var child = spawn('sendmail', ['-f', 'txt2@textbelt.com', email]);
child.stdout.on('data', console.log); child.stdout.on('data', console.log);
child.stderr.on('data', console.log); child.stderr.on('data', console.log);