react-native-mail
react-native-mail copied to clipboard
Multiple attachments [OUTDATED]
Rebased #11 (the first PR for multiple attachments). Tested and working on iOS, and with Android changes from @kneza23
Breaking changes
attachment:{} is now attachments:[], e.g.:
Mailer.mail({
subject: 'My email with attachments',
recipients: [],
body: 'Check this out',
isHTML: true,
attachments: [{
path: this.imageFilePath, // The absolute path of the file from which to read data.
type: 'png', // Mime Type: jpg, png, doc, ppt, html, pdf
},{
path: this.audioFilePath,
type: 'wav',
}]
}, (error, event) => {
Alert.alert(
error,
event,
[
{text: 'OK', onPress: () => console.log('OK: Email Error Response')},
],
{ cancelable: true }
)
});
Thanks for the PR. Looks good overall. Will merge soon.
when will this be merged? Need the ability to add multiple attachments
Good question. @chirag04?
For now you can use my fork https://github.com/adamski/react-native-mail
How has this not still been added.. really disappointing.
Woah! Can't believe this is still not possible ... Please Merge!
What’s the latest with getting support for this merged into a release? Or is there a better fork we all should switch to?
Can folks try the latest version and see if this is still an issue?