mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Mail consolidation
refs #5489 - move mail.js -> mail/index.js - move email-templates -> mail/templates
This commit is contained in:
parent
24b8605c52
commit
a82e9aa3c5
11 changed files with 4 additions and 4 deletions
|
@ -29,6 +29,6 @@ CONTRIBUTING.md
|
||||||
SECURITY.md
|
SECURITY.md
|
||||||
.travis.yml
|
.travis.yml
|
||||||
*.html
|
*.html
|
||||||
!core/server/email-templates/**
|
!core/server/mail/templates/**
|
||||||
bower_components/**
|
bower_components/**
|
||||||
.editorconfig
|
.editorconfig
|
||||||
|
|
|
@ -9,7 +9,7 @@ var _ = require('lodash').runInContext(),
|
||||||
Models = require('../models'),
|
Models = require('../models'),
|
||||||
path = require('path'),
|
path = require('path'),
|
||||||
fs = require('fs'),
|
fs = require('fs'),
|
||||||
templatesDir = path.resolve(__dirname, '..', 'email-templates'),
|
templatesDir = path.resolve(__dirname, '..', 'mail', 'templates'),
|
||||||
htmlToText = require('html-to-text'),
|
htmlToText = require('html-to-text'),
|
||||||
mail;
|
mail;
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@ mail = {
|
||||||
*
|
*
|
||||||
* @param {Object} options {
|
* @param {Object} options {
|
||||||
* data: JSON object representing the data that will go into the email
|
* data: JSON object representing the data that will go into the email
|
||||||
* template: which email template to load (files are stored in /core/server/email-templates/)
|
* template: which email template to load (files are stored in /core/server/mail/templates/)
|
||||||
* }
|
* }
|
||||||
* @returns {*}
|
* @returns {*}
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ var _ = require('lodash'),
|
||||||
Promise = require('bluebird'),
|
Promise = require('bluebird'),
|
||||||
nodemailer = require('nodemailer'),
|
nodemailer = require('nodemailer'),
|
||||||
validator = require('validator'),
|
validator = require('validator'),
|
||||||
config = require('./config');
|
config = require('../config');
|
||||||
|
|
||||||
function GhostMailer(opts) {
|
function GhostMailer(opts) {
|
||||||
opts = opts || {};
|
opts = opts || {};
|
Loading…
Add table
Reference in a new issue