Private Sub SendEmail (SendTo As String, SendBody As String, SendSub As String, SendAtt As String)
Dim EmailIntent As Intent
LogColor("Send Att: " & SendAtt, Colors.Red)
EmailIntent.Initialize(EmailIntent.ACTION_SEND, SendTo)
EmailIntent.putExtra("android.intent.extra.SUBJECT", SendSub)
EmailIntent.putExtra("android.intent.extra.TEXT", SendBody)
'EmailIntent.SetType("text/plain") 'it is not related to the file itself.
EmailIntent.SetType("text/html") 'it is not related to the file itself.
EmailIntent.Flags = 1
If SendAtt <> "" Then
EmailIntent.PutExtra("android.intent.extra.STREAM", CreateFileProviderUri(shared, GlobFileName))
End If
StartActivity (EmailIntent)
End Sub