Closed JayM96 closed 4 years ago
@JayM96 You need to add the name of the attachment file into the path. So, in your case,
attachmentPaths: [ RNFS.DocumentDirectoryPath + "/AppName/150420_1458165.jpg", ], attachmentNames: [ "this can be whatever, it's the name that will be shown to the file at the recipient's mailbox (works in android only)", ]
Yes just did it 5 min ago and it's working now.
Anyway,
Thanks @angelos3lex for replying too fast.
I am using the following code to implement smtp mail plugin.
Following is my package.json file :
Error :
err mail : [Error: IOException while sending message]
Can anyone tell me how to fix it?
Also the path i have used is correct.
Can anyone suggest a solution ?
Thanks.