Hi. I am trying to send a file as an attachment by email from within my app, using an email application already on the phone (ie not just by SMTP directly from within the app). In my case I am using gmail.
gmail gives an error 'permission denied for the attachment'.
Any ideas how to solve this? Thank you!
gmail gives an error 'permission denied for the attachment'.
Any ideas how to solve this? Thank you!
B4X:
Dim Message As Email
Message.To.Add("someone@gmail.com")
Message.Subject = "Subject"
Message.Body = "Message body."
Message.Attachments.Initialize
Message.Attachments.Add(File.Combine(File.DirInternal&"/mydirectory", "myfile"))
StartActivity(Message.GetIntent)