I try it...
'''''''create the file csv'''''''''
Dim su As StringUtils
Dim Rows As List
Rows.Initialize
Rows.Add (Array As String("A"))
Rows.Add (Array As String("AA"))
su.SaveCSV(File.DirRootExternal, "1.csv", ",", Rows)
''''''''''''''' end '''''''''''
'''''''' send mail ''''''''''
Private ei As Email ' requires Phone library
Try
ei.To.Add("
mymail@gmail.com")
ei.Body = "File is attached."
ei.Subject = "FileName.txt"
ei.Attachments.Add( File.Combine(File.DirDefaultExternal, "1.csv"))
StartActivity( ei.GetIntent )
Catch
ToastMessageShow( "No mail apps", True )
End Try
''''''''''''''''' end '''''''''''''''''
but i receive in the gmail app this message :"Impossible to attach the empty file"...
...but my file is not empty.
Any ideas?Thank you for support.