Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work on IOS 14.8.1 #190

Open
dungnguyentri3110 opened this issue Jan 6, 2022 · 2 comments
Open

Does not work on IOS 14.8.1 #190

dungnguyentri3110 opened this issue Jan 6, 2022 · 2 comments

Comments

@dungnguyentri3110
Copy link

Hi guys i have problem with my Project. i use react native mail to send my PDF file to mail. It was work well on Android but on IOS it was show up and gone right away. I dont know why?. Wait yours help, thanks you!

@stephen-jackson-tfs
Copy link

Same thing on ios 15.6

@ashishVerma2216
Copy link

Put Mailer.mail() in setTimeout and provide some delay.

setTimeout(() => {
Mailer.mail(
{
subject: 'subject',
recipients: ['support@gmail.com'],
ccRecipients: ['supportCC@gmail.com'],
bccRecipients: ['supportBCC@gmail.com'],
body: 'Body',
isHTML: true,
attachments: [
{
// Specify either path or uri to indicate where to find the file data.
// The API used to create or locate the file will usually indicate which it returns.
// An absolute path will look like: /cacheDir/photos/some image.jpg
// A URI starts with a protocol and looks like: content://appname/cacheDir/photos/some%20image.jpg
// path: data?.url, // The absolute path of the file from which to read data.
uri: data?.url, // The uri of the file from which to read the data.
// Specify either type or mimeType to indicate the type of data.
type: data?.fileType, // Mime Type: jpg, png, doc, ppt, html, pdf, csv
mimeType: '', // - use only if you want to use custom type
name: '', // Optional: Custom filename for attachment
},
],
},
(error, event) => {
console.log('Mailer --- ', error);
},
);
}, 1000);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants