From b033d3ac576b7d7ead5e81bb6b912d6a345e0f79 Mon Sep 17 00:00:00 2001 From: Ian Date: Sat, 20 Sep 2014 16:52:18 -0700 Subject: [PATCH] Add subject - some providers include it in the delivered text and currently it says 'No subject'. --- app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app.js b/app.js index 6361c0b..1867843 100644 --- a/app.js +++ b/app.js @@ -208,6 +208,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]); child.stdout.on('data', console.log); child.stderr.on('data', console.log);