Send An Email From The App

Hi

I am wondering how can I add “Email the developer” feature in my app. Basically, there would be a button in the “about” section which allows the app users to send an email to the developer with just one click. How can I implement this ?

 

Thanks

I found it

 

system.openURL (“mailto:1234@gmail.com”)

 

:slight_smile:

There’s another way to do this, which lets you do more with the email:

 

http://docs.coronalabs.com/api/library/native/showPopup.html

 

local options = { to = { "john.doe@somewhere.com", "jane.doe@somewhere.com" }, subject = "My High Score", body = "I scored over 9000!!! Can you do better?", attachment = { baseDir=system.DocumentsDirectory, filename="Screenshot.png", type="image" }, } native.showPopup("mail", options)

 

This lets you set multiple recipients, pre-fill the text and add attachments. You can also send html emails (there’s an example in the link).  

 

showPopUp() also lets you send SMS messages if you wanted to.

I found it

 

system.openURL (“mailto:1234@gmail.com”)

 

:slight_smile:

There’s another way to do this, which lets you do more with the email:

 

http://docs.coronalabs.com/api/library/native/showPopup.html

 

local options = { to = { "john.doe@somewhere.com", "jane.doe@somewhere.com" }, subject = "My High Score", body = "I scored over 9000!!! Can you do better?", attachment = { baseDir=system.DocumentsDirectory, filename="Screenshot.png", type="image" }, } native.showPopup("mail", options)

 

This lets you set multiple recipients, pre-fill the text and add attachments. You can also send html emails (there’s an example in the link).  

 

showPopUp() also lets you send SMS messages if you wanted to.