import nodemailer from 'nodemailer' export default class Mailer { constructor() { } init(){ this.transport = nodemailer.createTransport({ host: "mail.privateemail.com", port: 587, secure: false, auth: { //user: process.env.MAIL_USER, //pass: process.env.MAIL_PASS, user: "khysnik@xd4y.zip", pass: "Amicusaquavita@7533", }, }); return this; } async send(target, subject, message){ try{ this.transport.sendMail({ from: 'noreply@xd4y.zip', to: target, subject: subject, text: message }) } catch(e) { return false } return true } }