mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -05:00
52299998e2
Fixes #2836. * Mailer now only handles sending email and initializing settings. Instead of adding new notifications there, it just sets flags on its own object. * Mailer now checks for the presence of "to". If there is none, it fails. You should really pass a full mail object complete with "to", "subject" and "html", otherwise it's partial content. * Therefore Mail API doesn't check for the existence of the "to", and doesn't get the email from settings and substitute that * index.js now has a method that adds the notifications. I figured adding those THERE is probably better than individually in every module. It is, as the comments say, can be made extensible |
||
---|---|---|
.. | ||
api | ||
apps | ||
config | ||
controllers | ||
data | ||
errors | ||
helpers | ||
middleware | ||
models | ||
permissions | ||
routes | ||
storage | ||
views | ||
api.js | ||
bookshelf-session.js | ||
filters.js | ||
index.js | ||
mail.js | ||
middleware.js | ||
require-tree.js | ||
update-check.js | ||
xmlrpc.js |