mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-31 21:21:03 -04:00
360fac9510
events yet
14 lines
401 B
CoffeeScript
14 lines
401 B
CoffeeScript
EmailTemplator = require "./EmailTemplator"
|
|
EmailSender = require "./EmailSender"
|
|
|
|
module.exports =
|
|
|
|
sendEmail : (emailType, opts, callback)->
|
|
email = EmailTemplator.buildEmail emailType, opts
|
|
opts.html = email.html
|
|
opts.subject = email.subject
|
|
EmailSender.sendEmail opts, (err)->
|
|
callback(err)
|
|
|
|
# module.exports.sendEmail "welcome", {first_name:"henry", to:"henry.oswald@gmail.com"}, ->
|
|
|