const config = {
fromEmail : "insxxxxxxub@gmail.com", // your email
password : "hcdsxxxxxxdfjh", // your email password
toEmail : "vxxxxxxz@gmail.com", //send email to
subject : "hello", //subject
text : "Hi" //message
}
sendMail(config).then(res=>{
console.log(res);
})