fix user to match adminEmail
This commit is contained in:
@@ -401,7 +401,7 @@ function setupSendMail(app, options, callback) {
|
|||||||
assert.strictEqual(typeof options, 'object');
|
assert.strictEqual(typeof options, 'object');
|
||||||
assert.strictEqual(typeof callback, 'function');
|
assert.strictEqual(typeof callback, 'function');
|
||||||
|
|
||||||
var from = app.location ? app.location + '-app' : app.manifest.title.replace(/[^a-zA-Z0-9]/, ''); // use no-reply for bare domains
|
var from = (app.location ? app.location : app.manifest.title.replace(/[^a-zA-Z0-9]/, '')) + '-app';
|
||||||
|
|
||||||
var env = [
|
var env = [
|
||||||
'MAIL_SMTP_SERVER=mail',
|
'MAIL_SMTP_SERVER=mail',
|
||||||
|
|||||||
@@ -160,9 +160,8 @@ function sendMails(queue) {
|
|||||||
var transport = nodemailer.createTransport(smtpTransport({
|
var transport = nodemailer.createTransport(smtpTransport({
|
||||||
host: mailServerIp,
|
host: mailServerIp,
|
||||||
port: 2500, // this value comes from mail container
|
port: 2500, // this value comes from mail container
|
||||||
requireTLS: true, // STARTTLS
|
|
||||||
auth: {
|
auth: {
|
||||||
user: 'webadmin',
|
user: 'no-reply', // derive from adminEmail
|
||||||
pass: 'supersecret'
|
pass: 'supersecret'
|
||||||
},
|
},
|
||||||
tls: {
|
tls: {
|
||||||
|
|||||||
Reference in New Issue
Block a user