Vulcan/server/email.js
2013-01-19 23:01:43 +09:00

23 lines
No EOL
478 B
JavaScript

sendEmail = function(to, subject, text, html){
// TO-DO: limit who can send emails
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
});
};