Files
Robert Gardner 716f28e669 Support URI for attachment location. (#174)
* Support URI for attachment location.

* Add example path & uri to README comments.
2021-03-23 10:37:06 -04:00

24 lines
545 B
TypeScript

export namespace Mailer {
function mail(options: {
subject?: string;
recipients?: string[];
ccRecipients?: string[];
bccRecipients?: string[];
body?: string;
customChooserTitle?: string;
isHTML?: boolean;
attachments?: {
path?: string; // Specify either 'path' or 'uri'
uri?: string;
type?: string; // Specify either 'type' or 'mimeType'
mimeType?: string;
name?: string;
}[]
}, callback: (
error: string,
event?: string
) => void): void;
}
export default Mailer;