Sending emails using nodemailer works now. Needs to handle input and output more properly.