This commit is contained in:
Danny Coates 2014-02-26 15:57:31 -08:00
Родитель 45ddd028fb
Коммит 699542a9ee
2 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -41,12 +41,14 @@ function main() {
var Server = require('../server')
var server = null
var mailer = null
// TODO: send to the SMTP server directly. In the future this may change
// to another process that we send an http request to.
require('../mailer')(config, log)
.then(
function(mailer) {
function(m) {
mailer = m
// server public key
var serverPublicKey = JSON.parse(fs.readFileSync(config.publicKeyFile))

Просмотреть файл

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
var fs = require('fs')
var request = require('request')