mirror of
https://github.com/vale981/Vulcan
synced 2025-03-09 12:16:37 -04:00
23 lines
No EOL
478 B
JavaScript
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
|
|
});
|
|
}; |