Documentation
Calendar Invites
The send API lets you create calendar invites in with your email, but we are not just talking .ics files. With our calendar invites, your users can RSVP for an event you create. This means the event gets added to their calendars, and you in turn, get to know the status of your attendees. This is especially useful if you are running an event management system, are scheduling calls or whatever use case you might have. Here's how to do it with SMTP Express.
Sending a calendar invite
1// npm install smtpexpress
2import { createClient } from "smtpexpress"
3const smtpexpressClient = createClient({...});
4
5smtpexpressClient.sendApi.sendMail({
6 ...
7 calendarEvent: {
8 title: "My event name",
9 startDate: "2024-01-18T23:00:00.000Z",
10 endDate: "2024-01-19T23:00:00.000Z"
11 },
12});
Calendar event parameters
calendarEvent
stringtitle *
stringThe name of the event as it should be displayed on the user's calendar
startDate *
Date | StringThe start date and time of the event. Only supports time in ISO Format
endDate *
ObjectThe end date and time of the event. Only supports time in ISO Format
organizer
StringEmail address of the organizer of the event. Defaults to sender email address
location
StringTell your users where the event is happening. Remote or physical event? Let them know where
url
StringAn optional url for the event. Could be a zoom link or a map link for physical events!
description
StringAn optional description for the event. Tell your users what the event is all about