Textview email;


email.setPaintFlags(email.getPaintFlags() or Paint.UNDERLINE_TEXT_FLAG)


email.setOnClickListener {
val it = Intent(Intent.ACTION_SEND)
val tos = arrayOf("email@gmail.com")

it.putExtra(Intent.EXTRA_SUBJECT, "subject")
it.putExtra(Intent.EXTRA_EMAIL, tos)
it.type = "message/rfc822"

startActivity(Intent.createChooser(it, ""))
}

+ Recent posts