Hi all,
I've a problem sending email with attachments on marshmallow device (Nexus 5x)
Gmail Appear fine but prompt this error "impossibile allegare un file vuoto" - Unable to attach empty file (i've check Attached file, exist and isn't empty)
application works fine on android 5.x device but doesn't work on 6.x
Thanks in advance for support
regards
Tommaso
I've a problem sending email with attachments on marshmallow device (Nexus 5x)
Gmail Appear fine but prompt this error "impossibile allegare un file vuoto" - Unable to attach empty file (i've check Attached file, exist and isn't empty)
application works fine on android 5.x device but doesn't work on 6.x
B4X:
'Sul click della label Info Mando la mail con l'UDID per l'attivazione
Dim mailapp As Email
mailapp.Subject = "Contatto da Android"
Dim Codice As String = CreaEmail
'Imposto il testo della mail
mailapp.Body = "In allegato il contatto"
mailapp.To.Add("support@palmosoft.com")
'Allego l'attivazione
File.WriteString(File.DirRootExternal, Codice & ".txt", Codice)
Dim list1 As List
list1 = File.ReadList(File.DirRootExternal, Codice & ".txt")
For x = 0 To list1.Size - 1
Log(list1.Get(x))
Next
mailapp.Attachments.Add(File.DirRootExternal & "/" & Codice & ".txt")
'Mando la mela
StartActivity(mailapp.GetIntent)
Thanks in advance for support
regards
Tommaso