mirror of
https://github.com/status-im/react-native-mail.git
synced 2026-08-31 11:41:18 +00:00
* Support URI for attachment location. * Add example path & uri to README comments.
24 lines
545 B
TypeScript
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;
|