Skip to content

Instantly share code, notes, and snippets.

@JaiParakh
Last active July 16, 2020 17:33
Show Gist options
  • Save JaiParakh/78168f79fcbdf6463ef4f15e5be7fc9a to your computer and use it in GitHub Desktop.
Save JaiParakh/78168f79fcbdf6463ef4f15e5be7fc9a to your computer and use it in GitHub Desktop.
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