incendio Well-Known Member Licensed User Longtime User May 26, 2014 #1 Hi guys, I tried to sent email with attachment with these codes Code: Copy Sub Button1_Click Dim ei As Email ei.To.Add("[email protected]") ei.Body = "File" ei.Subject = "File with attachment" ei.Attachments.Add(File.Combine(File.DirInternal, "GoodCat.csv")) StartActivity(ei.GetIntent) End Sub Email sent, but no attachment. If I changed the code from : ei.Attachments.Add(File.Combine(File.DirInternal, "GoodCat.csv")) to : ei.Attachments.Add(File.Combine(File.DirRootExternal, "GoodCat.csv")) Email and attachment sent ok. Is this normal? Can't send attachment from DirInternal? Thanks in advance.
Hi guys, I tried to sent email with attachment with these codes Code: Copy Sub Button1_Click Dim ei As Email ei.To.Add("[email protected]") ei.Body = "File" ei.Subject = "File with attachment" ei.Attachments.Add(File.Combine(File.DirInternal, "GoodCat.csv")) StartActivity(ei.GetIntent) End Sub Email sent, but no attachment. If I changed the code from : ei.Attachments.Add(File.Combine(File.DirInternal, "GoodCat.csv")) to : ei.Attachments.Add(File.Combine(File.DirRootExternal, "GoodCat.csv")) Email and attachment sent ok. Is this normal? Can't send attachment from DirInternal? Thanks in advance.
Erel B4X founder Staff member Licensed User Longtime User May 26, 2014 #2 Other apps cannot access your app internal folder. This is normal. Upvote 0
incendio Well-Known Member Licensed User Longtime User May 26, 2014 #3 Ok, I got it. My app call gmail to send email, so gmail can't access DirInternal. Thanks for your confirmation. Last edited: May 26, 2014 Upvote 0
Ok, I got it. My app call gmail to send email, so gmail can't access DirInternal. Thanks for your confirmation.