lfapi
diff lfapi/main.js @ 5:ef8aff2e0f67
Replaced mailer by nodemailer for sending emails.HG:' are removed.
author | bsw |
---|---|
date | Mon Oct 24 20:53:24 2011 +0200 (2011-10-24) |
parents | 77b761569ae2 |
children | cf05d9428ecc |
line diff
1.1 --- a/lfapi/main.js Mon Oct 24 20:32:49 2011 +0200 1.2 +++ b/lfapi/main.js Mon Oct 24 20:53:24 2011 +0200 1.3 @@ -24,7 +24,7 @@ 1.4 1.5 var selector = db.selector; 1.6 1.7 -var email = require('mailer'); 1.8 +var nodemailer = require('nodemailer'); 1.9 1.10 1.11 // check if current session has at least given access level, returns error to client if not. 1.12 @@ -1039,15 +1039,10 @@ 1.13 1.14 db.query(conn, req, res, query, function (result, conn) { 1.15 1.16 + nodemail.sendmail = '/usr/bin/sendmail'; 1.17 + 1.18 // send email to user 1.19 - email.send({ 1.20 - host : config.mail.smtp_host, 1.21 - port: config.mail.smtp_port, 1.22 - ssl: config.mail.smtp_ssl, 1.23 - domain: config.mail.smtp_domain, 1.24 - authentication: config.mail.smtp_authentication, 1.25 - username: config.mail.smtp_username, 1.26 - password: config.mail.smtp_password, 1.27 + nodemailer.send_mail({ 1.28 from: config.mail.from, 1.29 subject: config.mail.subject_prefix + "Your LiquidFeedback API alpha test account needs confirmation", 1.30 to: member_notify_email,