我正在尝试使用 Node js 发送日历邀请。
我已经尝试过 nodemailer 库,并且正在发送带有日历邀请的邮件
就像参考this https://stackoverflow.com/questions/45097141/nodemailer-send-calendar-event-and-add-it-to-google-calendar问题
but this is sending invite like
but I want send invite like
如果有人知道更好的方法,请提供一些帮助。
[update]
using google-calendar api
the output is showing like
我会使用 Google 日历 API:https://developers.google.com/google-apps/calendar/create-events https://developers.google.com/google-apps/calendar/create-events,您可以使用诸如https://www.npmjs.com/package/google-calendar https://www.npmjs.com/package/google-calendar。它还有一个好处是您不必从服务器发送电子邮件。
通过这种方式,您可以添加与会者,并且邀请将与您直接从日历发送请求相同,而不是 Google 将您的电子邮件解释为日历活动。
您创建的活动会显示在所有主要的 Google 日历上
您包含的具有相同活动 ID 的与会者。如果你设置
在您的插入请求上将 sendNotifications 设置为 true,与会者将
还会收到您的活动的电子邮件通知。查看事件
多位与会者指南以获取更多信息。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)