From 68300e4e5e9812db97551705241ccae078f3425c Mon Sep 17 00:00:00 2001 From: jules Date: Tue, 6 Jun 2017 03:41:26 +0000 Subject: email styling --- lib/awmail/index.js | 8 ++++---- templates/email.html | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/awmail/index.js b/lib/awmail/index.js index 814e544..aee83ed 100644 --- a/lib/awmail/index.js +++ b/lib/awmail/index.js @@ -46,8 +46,8 @@ function AWMail (options) { { name: 'plain', maxCount: 1 }, ]) - var logoImage = fs.readFileSync('../../public/assets/img/logo.png') - var armoryImage = fs.readFileSync('../../public/assets/img/armory.png') + var logoImage = fs.readFileSync('public/assets/img/logo.png') + var armoryImage = fs.readFileSync('public/assets/img/armory.png') router.post('/send', multerMiddleware, function (req, res) { res.header('Access-Control-Allow-Origin', '*') @@ -221,11 +221,11 @@ function AWMail (options) { image.end(content.image.buffer) var logo = new PassThrough() - logo.path = 'logo.jpg' + logo.path = 'logo.png' logo.end(logoImage) var armory = new PassThrough() - armory.path = 'armory.jpg' + armory.path = 'armory.png' armory.end(armoryImage) return mg.messages.create(config.domain, { diff --git a/templates/email.html b/templates/email.html index ea91352..dcf6ed7 100644 --- a/templates/email.html +++ b/templates/email.html @@ -1,9 +1,9 @@ -
- +
+

- +

-Download your photo +Download your photo

- -
\ No newline at end of file + +
-- cgit v1.2.3-70-g09d2