fix(core): update
This commit is contained in:
@ -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'
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
export * from './smartsmtp.classes.smartsmtp.js';
|
||||
export * from './smartsmtp.classes.smartsmtp.js';
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user