Mail

class Mail(val receivers: List<String>, val subject: String, val body: String? = null, val bodyIsHtml: Boolean = false, val attachments: List<MailAttachmentFile> = emptyList())

Represents an email to be sent

Parameters

receivers

The email addresses of the receivers

subject

The subject of the email

body

The body of the email

bodyIsHtml

Whether the body is in HTML format

attachments

The files to be attached to the email

Constructors

Link copied to clipboard
constructor(receivers: List<String>, subject: String, body: String? = null, bodyIsHtml: Boolean = false, attachments: List<MailAttachmentFile> = emptyList())

Properties

Link copied to clipboard
Link copied to clipboard
val body: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
actual fun Mail.startEmailChooser(chooserTitle: String): Boolean
expect fun Mail.startEmailChooser(chooserTitle: String): Boolean

Starts the email chooser

actual fun Mail.startEmailChooser(chooserTitle: String): Boolean