node.js - Sending email from a BeagleBone Black with Bonescript -
what efficient way send email wi-fi connected beaglebone black using cloud9 ide , bonescript?
i can use node on bbb run following code , send email using ssmtp, have not been able work script inside cloud9 ide.
function sendmyemail() { var flag = true; if (flag === true) { var sys = require('sys') var exec = require('child_process').exec; function puts(error, stdout, stderr) { sys.puts(stdout) } exec("ssmtp -t < ~/desktop/email.txt", puts); flag = false; } } sendmyemail();
Comments
Post a Comment