Problem attaching a file into an e-mail

drmover

Member
Licensed User
Longtime User
Hello,

I am having a problem attaching a file into an e-mail.
My code (see below) is working fine on a my phone but when I run it on a tablet the attachment is not being selected even though the file exists and I can select it manually.

Dim SendReport As Email
File.WriteString (File.DirDefaultExternal, "JobAttachment.html", "Test")
SendReport.To.Add("test@test.com")
SendReport.Subject = "Test"
SendReport.Body = "See attachment"
SendReport.Attachments.Add(File.Combine(File.DirDefaultExternal, "JobAttachment.html"))
StartActivity(SendReport.GetIntent)

What should I do? Any ideas?

Thank you,
Elad.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…