Send Email as type "meeting"

Asked

Viewed 32 times

-2

I need to send email automatically. I can do this already using the nodemailer. But, I need this email to go as Invite (Meeting). Because, when the person clicks "Yes", it will save the reminder in the Outlook calendar of the said user.

I wonder if there’s a way to do this using the icalEvent.

{
  const nodemailer = require('nodemailer');

  let transporter = nodemailer.createTransport({
    host: "teste",
    port: 000,
    secure: true,
    auth: {
      user: "[email protected]",
      pass: "12345"
    }
  });

  transporter.sendMail({
    from: "Cauã Alves <[email protected]>",
    to: "[email protected]",
    subject: "Teste de Envio de Email",
    icalEvent:
  }).then(message => {
    console.log(message);
  }).catch(err => {
    console.log(err);
  })
}
  • 1

    You probably have to use VCALENDAR, with the content of an "item" from multipartbody as being: text/calendar;method=REQUEST ... I can’t say that Nodemailer does this, but surely they must have extra libs in NPM that do it already, if you can write something yourself for SMTP.... Now I don’t know if this ensures the user’s email client has support, or if for Outlook there are differences over Googlecalendar and if it will have to adjust things for each type of email... Maybe the nodemailer has support to add body manually, q could generate this in the "hand"

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.