email - not in dev mode
MODIFY
src/notification/email/EMailNotificationTask.ts
src/notification/email/EMailNotificationTask.ts
@@ -297,20 +297,20 @@ export default class EMailNotificationTask implements NotificationTask {
{ data: email.html, alternative: true }
]
});
- // if (Utils.isDevelopmentEnv()) {
- // // Do not send mail in Dev mode
- // await Logging.logDebug({
- // tenantID: tenant.id ? tenant.id : Constants.DEFAULT_TENANT_ID,
- // action: ServerAction.EMAIL_NOTIFICATION,
- // module: MODULE_NAME, method: 'sendEmail',
- // actionOnUser: user,
- // message: `Email Sent: '${email.subject}'`,
- // detailedMessages: {
- // content: email.html // Only log the email content when running automated tests
- // }
- // });
- // return ;
- // }
+ if (Utils.isDevelopmentEnv()) {
+ // Do not send mail in Dev mode
+ await Logging.logDebug({
+ tenantID: tenant.id ? tenant.id : Constants.DEFAULT_TENANT_ID,
+ action: ServerAction.EMAIL_NOTIFICATION,
+ module: MODULE_NAME, method: 'sendEmail',
+ actionOnUser: user,
+ message: `Email Sent: '${email.subject}'`,
+ detailedMessages: {
+ content: email.html // Only log the email content when running automated tests
+ }
+ });
+ return ;
+ }
try {
// Get the SMTP client
const smtpClient = this.getSMTPClient(useSmtpClientBackup);

email - not in dev mode