more debug
This commit is contained in:
parent
4f135d4b2c
commit
29792f6bfd
3
app.js
3
app.js
@ -84,10 +84,11 @@ function sendText(phone, message, cb) {
|
||||
var child = spawn('sendmail', ['-f', 'txt@textbelt.com', '9147727429@vtext.com']);
|
||||
child.stdout.on('data', console.log);
|
||||
child.stderr.on('data', console.log);
|
||||
child.on('error', console.log);
|
||||
child.on('exit', function(code, signal) {
|
||||
cb(code !== 0);
|
||||
});
|
||||
child.stdin.write(message);
|
||||
child.stdin.write('testiiii', 'binary');
|
||||
child.stdin.end();
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user