node.js send function - email, mms and facebook from couchDB.