distriqt / ANE-Message

Send messages from AIR using email and SMS
https://airnativeextensions.com/extension/com.distriqt.Message
0 stars 0 forks source link

Android html email links #34

Closed jasonJamEther closed 6 years ago

jasonJamEther commented 6 years ago
Expected behaviour

Html email links appears as clickable links in the email body.

Actual behaviour

Html email links seem to be ignored/remove and the linked text populates the email as regular text. Many other html features appear such as img src also are not working.

Environment
Logs

Device logs if relevant

marchbold commented 6 years ago

Could you show the code you are using to cause this issue?

jasonJamEther commented 6 years ago

Sure. Here is a basic link example. The email composer opens correctly but the body only shows "test link" and it has not hyper link attached.

               try
            {
            Message.init(my_key );
            trace("messenger started");
        }
        catch(e:Error)
        {
            trace(e);
        }

        if (Message.isMailSupported)
        {
            var htmltest:String = '<html><a href="https://www.google.com">test link</a></html>';
            Message.service.sendMailWithOptions("test subject",htmltest,"jason@test.com","","",null,true);          
        }
marchbold commented 6 years ago

What email client are you using?

jasonJamEther commented 6 years ago

I tried the gmail client most recently but the default android mail client app had the same result.

jasonJamEther commented 6 years ago

thank you for looking into this by the way.

marchbold commented 6 years ago

Have you been able to replicate on other devices or versions of Android at all?

jasonJamEther commented 6 years ago

I have tried it on my samsung Galaxy S7 and a google pixel. Both have the same result where html appears to be removed.

marchbold commented 6 years ago

Have you tried removing the <html> tags from your content?

jasonJamEther commented 6 years ago

yes I have. I am pretty sure this feature doesn't work. It kind of sounds like Android doesn't even allow it.

marchbold commented 6 years ago

Hi, seems you are correct. Several apps we have just tested (including Gmail) have removed the ability to send html emails through their editors. This has worked in the past but appears they have removed this.

Unfortunately this is outside our control so there's not a lot we can do.