angelos3lex / react-native-smtp-mailer

Send emails by connecting to smtp server+attachments, using android javamail and ios mailcore2
39 stars 32 forks source link

Not working With attachments #23

Open AahilShahzad opened 4 years ago

AahilShahzad commented 4 years ago

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

angelos3lex commented 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..

AahilShahzad commented 4 years ago

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

AahilShahzad commented 4 years ago

Could you do any help??

angelos3lex commented 4 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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????