# HG changeset patch # User bsw # Date 1319482404 -7200 # Node ID ef8aff2e0f6770e77590227b3c801fa2b5ce50d0 # Parent 77b761569ae2b98440a9899460f7d5a4bed0fbd4 Replaced mailer by nodemailer for sending emails.HG:' are removed. diff -r 77b761569ae2 -r ef8aff2e0f67 config.js --- a/config.js Mon Oct 24 20:32:49 2011 +0200 +++ b/config.js Mon Oct 24 20:53:24 2011 +0200 @@ -23,13 +23,6 @@ // mail server, email sender and subject settings exports.mail = { - smtp_host: 'localhost', - smtp_port: '25', - smtp_ssl: false, - smtp_domain: 'localhost', - //smtp_authentication: 'login', - //smtp_username: 'username', - //smtp_password: 'password', from: 'Sender name ', subject_prefix: '[email subject prefix] ' }; diff -r 77b761569ae2 -r ef8aff2e0f67 lfapi/main.js --- a/lfapi/main.js Mon Oct 24 20:32:49 2011 +0200 +++ b/lfapi/main.js Mon Oct 24 20:53:24 2011 +0200 @@ -24,7 +24,7 @@ var selector = db.selector; -var email = require('mailer'); +var nodemailer = require('nodemailer'); // check if current session has at least given access level, returns error to client if not. @@ -1039,15 +1039,10 @@ db.query(conn, req, res, query, function (result, conn) { + nodemail.sendmail = '/usr/bin/sendmail'; + // send email to user - email.send({ - host : config.mail.smtp_host, - port: config.mail.smtp_port, - ssl: config.mail.smtp_ssl, - domain: config.mail.smtp_domain, - authentication: config.mail.smtp_authentication, - username: config.mail.smtp_username, - password: config.mail.smtp_password, + nodemailer.send_mail({ from: config.mail.from, subject: config.mail.subject_prefix + "Your LiquidFeedback API alpha test account needs confirmation", to: member_notify_email,