Click on mailadress

volvomann

Active Member
Licensed User
Longtime User
How can i create a code there I click on a mailadress in a label, and
the mailclient shows up, and she mail adress standing in the adressfield?
 

volvomann

Active Member
Licensed User
Longtime User
Assuming you have a label named "Label1" you do this:
B4X:
Sub Label1_Click

    Dim i As Intent 

    i.Initialize(i.ACTION_VIEW, "mailto:" & Label1.Text)

    StartActivity(i)
   
End Sub

Is it posible to ad the mail subject to the code too?
 
Upvote 0
Top