When i create a thread WITHOUT any useful informations of what exactly i did and how- And maybe the information what i expected... No Code showing, nothing.
Is this normal that some people give weird answers then?
When i create a thread WITHOUT any useful informations of what exactly i did and how- And maybe the information what i expected... No Code showing, nothing.
Is this normal that some people give weird answers then?
Is more information required? There is Code showing: "Mail.GetIntent". Probably thats the code where the error is but i will add an Example Send-Mail Code:
Dim Mail as Mail
mail.Body = "Example Body"
Dim list1 As List
list1.Initialize
list1.Add("Example@Example.com")
list1.Add("Example2@Example2.com")
mail.To = list1
mail.Subject = "Example Subject"
StartActivity(mail.GetIntent)
I guess that you mean As Email instead of As Main.
If you do not need to include attachments then you can use this code:
B4X:
Dim in As Intent
in.Initialize("android.intent.action.SENDTO", "mailto:")
in.PutExtra("android.intent.extra.EMAIL", Array As String("email@example.com"))
in.PutExtra("android.intent.extra.SUBJECT", "this is the subject")
in.PutExtra("android.intent.extra.TEXT", "this is the body")
StartActivity(in)
I guess that you mean As Email instead of As Main.
If you do not need to include attachments then you can use this code:
B4X:
Dim in As Intent
in.Initialize("android.intent.action.SENDTO", "mailto:")
in.PutExtra("android.intent.extra.EMAIL", Array As String("email@example.com"))
in.PutExtra("android.intent.extra.SUBJECT", "this is the subject")
in.PutExtra("android.intent.extra.TEXT", "this is the body")
StartActivity(in)