- DashBoard, Profile, Order Menu
This commit is contained in:
@@ -57,6 +57,10 @@ module.exports = {
|
||||
paramemail.send = !previewonly;
|
||||
}
|
||||
|
||||
// if (!transport) {
|
||||
// transport = this.getTransport();
|
||||
// }
|
||||
|
||||
if (transport) {
|
||||
paramemail.transport = transport;
|
||||
} else {
|
||||
@@ -432,7 +436,7 @@ module.exports = {
|
||||
// Create Transport
|
||||
let smtpTransport = null;
|
||||
|
||||
if (mylocalsconf.dataemail.email_service !== 'gmail') {
|
||||
if (mylocalsconf.dataemail.email_service !== 'gmail' && mylocalsconf.dataemail.email_service !== undefined) {
|
||||
smtpTransport = nodemailer.createTransport({
|
||||
host: mylocalsconf.dataemail.email_service,
|
||||
port: mylocalsconf.dataemail.email_port,
|
||||
|
||||
Reference in New Issue
Block a user