0

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.

Haradzieniec
  • 9,086
  • 31
  • 117
  • 212

1 Answers1

1

I would try

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

but I'm not sure it works on every OS

Titouan de Bailleul
  • 12,920
  • 11
  • 66
  • 121
  • Thank you for your reply! It works at least on Android device, but a little bit quirky - the intermediate window opens. But, what about body=Message to display bold M? How to use html tags in there? Thank you. – Haradzieniec Jun 04 '13 at 12:58
  • http://stackoverflow.com/questions/247245/is-it-possible-to-add-an-html-link-in-the-body-of-a-mailto-link – Titouan de Bailleul Jun 04 '13 at 13:11