Android Question Email/Share HTML text

iCAB

Well-Known Member
Licensed User
Hi All

I would like to open the default email client and auto append a link. The code is working fine for iOS but not for android. The email client opens up, but the text posted as plain text.
Here is the code I am using

B4X:
    Dim msg As Email
    
    msg.To.Add(DestinationEmailAddress)
    
    
    msg.Subject = MessageSubject
    
    If blnAppendShareInfo = True Then
            'Share signature is: $"<a href="XXX">YYY</a>"$
            'Where XXX and YYY are replaced with url and text
        MessageBody = MessageBody & clsHSTSettings.HSET_GetShareSignature
        
            'I have also tried this
        'MessageBody = "<b>Hello</b>"
            
    End If
    
    msg.Body = MessageBody
    msg.Attachments.AddAll(lstClassFilesList)
    
    StartActivity(msg.GetHtmlIntent)

I also hard coded the message body as in the 3rd post:
https://www.b4x.com/android/forum/threads/table-in-e-mail-in-html-format-email-gethtmlintent.17473/

The email client is GMail

I am facing the same issue when using ahaShare

Any ideas what could be wrong.

Thank you
iCAB
 
Top