You've already forked crontab-ui
mirror of
https://github.com/alseambusher/crontab-ui.git
synced 2025-12-15 11:43:58 +08:00
adding mail config ui options
This commit is contained in:
22
config/mailconfig.js
Normal file
22
config/mailconfig.js
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user