i have this file here which i want to automatically send to my email please help
B4X:
http://kccug.com/KabojjaApp/workold/P5WORK.PDF
B4X:
Dim FileName As String = "b4a.png"
'copy the shared file to the shared folder
File.Copy(File.DirAssets, FileName, Starter.Provider.SharedFolder, FileName)
Dim email As Email
email.To.Add("makumbisulaiman58@gmail.com")
email.Subject = "subject"
email.Attachments.Add(Starter.Provider.GetFileUri(FileName))
email.Attachments.Add(Starter.Provider.GetFileUri(FileName)) 'second attachment
Dim in As Intent = email.GetIntent
in.Flags = 1 'FLAG_GRANT_READ_URI_PERMISSION
StartActivity(in)