cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Email with Body - MDK

gassssty
Discoverer
0 Kudos
406

Hi guys,

Is it possible to implement a button that opens the email app with a email passing it and a body in a MDK app?

Greetings and thanks for the response!! 😄

Accepted Solutions (0)

Answers (1)

Answers (1)

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

You should be able to create a mailto link and depending on how your device email works it would launch the email app and have a prepopulated message based on the url properties you sent.  A quick search found this link that explains the mailto properties but it will be up to your email app if it honors them or not.

https://css-tricks.com/snippets/html/mailto-links/

From the MDK side you can construct your url string and call clientAPI.nativescript.utilsModule.openURL and pass your mailto link string.

gassssty
Discoverer
0 Kudos
Yes. I know that in html because I am a programmer of that. But I'll try then using the clientAPI... etc. Thanks!