Answers for "how to send email without intent in android studio"

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

Code answers related to "how to send email without intent in android studio"

Browse Popular Code Answers by Language