Android Question Error sending the email

Najirm

Member
Licensed User
Longtime User
When sending an email with button click :

B4X:
    Dim Message As Email
    Message.To.Add("abc@example.com")
    Message.Subject("Email Subject")
    Message.Body("Email Content")
    StartActivity(Message.GetIntent)

I get the following error :

B4X:
Parsing code.                           0.89
Compiling code.                         Error
Error compiling program.
Error description: Array expected.
Occurred on line: 26
Message.Subject("Email Subject")
Word: (
 

DonManfred

Expert
Licensed User
Longtime User
B4X:
Dim Message As Email
    Message.To.Add("abc@example.com")
    Message.Subject = "Email Subject"
    Message.Body = "Email Content"
    StartActivity(Message.GetIntent)
 
Upvote 0
Top