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

Not working With attachments #23

Open
AahilShahzad opened this issue Jan 8, 2020 · 7 comments
Open

Not working With attachments #23

AahilShahzad opened this issue Jan 8, 2020 · 7 comments

Comments

@AahilShahzad
Copy link

AahilShahzad commented Jan 8, 2020

[Error: IOException while sending message]
this error when i do attachments.
please help

@angelos3lex
Copy link
Owner

In order to be able and help, i need know in which OS you are trying (ios/android), which RN version and which version of this package. Then, also your code is essential, otherwise i need to guess from 0, thus can't help at all..

@AahilShahzad
Copy link
Author

platform is android
RN version: 0.61+
"react-native-smtp-mailer": "^1.2.2"
and code image is here
Capture

@AahilShahzad
Copy link
Author

Could you do any help??

@angelos3lex
Copy link
Owner

From what i can understand / guess, the error is happening because your attachment data do not specify the correct path in the filesystem, where the actual file exists, so that's why the IOException. Or maybe you do not have the correct permissions on that file?

@samuelj1323
Copy link

I'm having a similar issue on iOS, when I send the email, the email arrives perfectly fine. No errors, but the attachment is this empty file with the same name. Any Thoughts?

@samuelj1323
Copy link

For mine own problem, I figured out the solution.
You need to make a string variable, and set it equals to the source uri, and then take off the excessive "file://" bit before. This will send the full extensions.

@snehadange
Copy link

For mine own problem, I figured out the solution.
You need to make a string variable, and set it equals to the source uri, and then take off the excessive "file://" bit before. This will send the full extensions.

i did this do you have any other option????

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

4 participants