Android Send Email Intent (Kotlin)

April 18, 2018
val intent = Intent(Intent.ACTION_SENDTO)
intent.data = Uri.parse("mailto:") // only email apps should handle this
intent.putExtra(Intent.EXTRA_EMAIL, "desmond.lua@luasoftware.com")
intent.putExtra(Intent.EXTRA_SUBJECT,"Feedback")
if (intent.resolveActivity(activity.packageManager) != null) {
    startActivity(intent)
}
This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.