defines optional content encoding, eg. ‘base64’ or ‘hex’. This only applies if the content is a string. By default an unicode string is assumed.
optional filename, defaults to ‘invite.ics’
is an alternative for content to load the calendar data from an URL
optional method, case insensitive, defaults to ‘publish’. Other possible values would be ‘request’, ‘reply’, ‘cancel’ or any other valid calendar method listed in RFC5546. This should match the METHOD: value in calendar event file.
path to a file or an URL (data uris are allowed as well) if you want to stream the file instead of including it (better for larger attachments)
Generated using TypeDoc
String, Buffer or a Stream contents for the attachmentent