fix(core): update

This commit is contained in:
2022-08-07 18:23:53 +02:00
parent afd6bb8479
commit 3d282385f3
6 changed files with 15 additions and 23 deletions

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@pushrocks/smartsmtp',
version: '3.0.1',
version: '3.0.2',
description: 'a module for handling smtp stuff'
}

View File

@ -1 +1 @@
export * from './smartsmtp.classes.smartsmtp.js';
export * from './smartsmtp.classes.smartsmtp.js';

View File

@ -26,7 +26,7 @@ export class Smartsmtp {
public static async createSmartsmtpSendmail() {
const nodemailerTransport = plugins.nodemailer.createTransport({
sendmail: true,
newline: 'unix'
newline: 'unix',
});
return new Smartsmtp(nodemailerTransport);
}
@ -61,7 +61,7 @@ export class Smartsmtp {
});
}
const response = await this.nodemailerTransport.sendMail(message).catch(err => {
const response = await this.nodemailerTransport.sendMail(message).catch((err) => {
console.log(err);
});
return response;