Answers for "Send email with intent"

3

Send email with intent

val to = "[email protected]"
val subject = "Feedback"
val mailTo = "mailto:" + to + "?&subject=" + Uri.encode(subject)
val emailIntent = Intent(Intent.ACTION_VIEW)
emailIntent.data = Uri.parse(mailTo)
startActivity(emailIntent)
Posted by: Guest on August-24-2021

Browse Popular Code Answers by Language