How do I launch a mobile devices default email app?

Get help using Construct 2

Post » Wed Oct 26, 2016 7:52 am

Is there an easy way to do that?

Like, player touches button from menus in game, the device's email application launches with a new email opened and the 'to' field and 'subject' field are filled out with predefined data I specify (ie my email address and a subject like 'Bug Report').

I know there are tutorials like this one, that involve using ajax... but I dont think what I want to do is that involved. I just want to make it easier for a user to quickly send me an email from within the game...

Just like you can use the 'browser object' to quickly launch a webpage. Is there a similar straight forward way to launch the email app on a device?

Sorry if the answer to this is stupidly obvious...
B
66
S
46
G
57
Posts: 387
Reputation: 35,721

Post » Wed Oct 26, 2016 11:27 am

Did you try to open mailto link in Browser ?

mailtoBrowserOpen.capx
Image
B
64
S
23
G
7
Posts: 1,483
Reputation: 10,827

Post » Wed Oct 26, 2016 12:32 pm

Hey korbaach, thanks for the example. Thats not quite it tho. I want to open the mobile device's email app to send an email from that, rather than use a form made in C2? (I think).
B
66
S
46
G
57
Posts: 387
Reputation: 35,721

Post » Wed Oct 26, 2016 2:00 pm

so..don't use TextBox for body..use just button or sprite..

browser2mail.capx
Image
B
64
S
23
G
7
Posts: 1,483
Reputation: 10,827

Post » Wed Oct 26, 2016 11:43 pm

That's exactly what I was after!!! Thanks heaps korbaach it works perfectly!
B
66
S
46
G
57
Posts: 387
Reputation: 35,721


Return to How do I....?

Who is online

Users browsing this forum: plinkie and 1 guest