Last active
July 16, 2020 17:33
-
-
Save JaiParakh/78168f79fcbdf6463ef4f15e5be7fc9a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const {google} = require('googleapis'); | |
const mailComposer = require('nodemailer/lib/mail-composer'); | |
class CreateMail{ | |
constructor(auth, to, sub, body, task, attachmentSrc=[]){ | |
this.me = 'Enter your email id.'; | |
this.task = task; | |
this.auth = auth; | |
this.to = to; | |
this.sub = sub; | |
this.body = body; | |
this.gmail = google.gmail({version: 'v1', auth}); | |
this.attachment = attachmentSrc; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment