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

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -