Vulcan/server/email.js
Christian Bundy 86ec3ede93 Solve trivial JS errors
Using jshint and and fixmyjs I went through and removed 220 trivial
Javascript errors – mostly missing semicolons, and some properties that
weren’t written in dot notation. You can view the diff of jshint’s
output here:
https://gist.github.com/christianbundy/7b37c51bb6f7c8d739e7/revisions
2014-05-06 20:15:48 -07:00

24 lines
No EOL
539 B
JavaScript

sendEmail = function(to, subject, text, html){
// TODO: limit who can send emails
// TODO: fix this error: Error: getaddrinfo ENOTFOUND
var from = getSetting('defaultEmail', 'noreply@example.com');
var siteName = getSetting('title');
var subject = '['+siteName+'] '+subject;
console.log('sending email…');
console.log(from);
console.log(to);
console.log(subject);
console.log(text);
console.log(html);
Email.send({
from: from,
to: to,
subject: subject,
text: text,
html: html
});
};