Add subject - some providers include it in the delivered text and currently it says 'No subject'.
This commit is contained in:
parent
17a94d2a60
commit
b033d3ac57
1
app.js
1
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);
|
||||
|
Loading…
Reference in New Issue
Block a user