Open AahilShahzad opened 4 years ago
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..
platform is android
RN version: 0.61+
"react-native-smtp-mailer": "^1.2.2"
and code image is here
Could you do any help??
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?
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?
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.
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????
[Error: IOException while sending message] this error when i do attachments. please help