简体   繁体   中英

Sencha Touch - email button

I need a mail button in my Android application, that opens a standard email form with filled To, Subject (can be edited) and Message fields. It's kind of a refer-a-friend email. How to make it? All I've found is:

listeners: {
    tap: {
        fn: function() {
            console.log('button tapped');
            window.open('mailto:webmaster@example.com');
        },
        element: 'element'
    }
},

Unfortunately, I don't know how to implement html text and subject in it.

So, what's the solution?

Thank you.

I would try

mailto:address@domain.com?Subject=subject&body=message

but I'm not sure it works on every OS

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM