adding mail config ui options

This commit is contained in:
alseambusher
2016-12-13 14:06:13 +05:30
parent b207df5332
commit b84a04adb0
8 changed files with 174 additions and 38 deletions

22
config/mailconfig.js Normal file
View File

@@ -0,0 +1,22 @@
/*jshint esversion: 6*/
// refer nodemailer for more info
var transporterStr = 'smtps://user%40gmail.com:pass@smtp.gmail.com';
var mailOptions = {
from: '"Fred Foo 👥" <foo@blurdybloop.com>', // sender address
to: 'bar@blurdybloop.com, baz@blurdybloop.com', // list of receivers
subject: 'Hello ✔', // Subject line
text: 'Hello world 🐴', // plaintext body
html: '<b>Hello world 🐴</b>' // html body
};
if (typeof window === 'undefined') {
exports.transporterStr = transporterStr;
exports.mailOptions = mailOptions;
} else {
if (!window.config)
window.config = {};
window.config.transporterStr = transporterStr;
window.config.mailOptions = mailOptions;
}