All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.raven.SendEmailParamsFactory.kt Maven / Gradle / Ivy

There is a newer version: 3.0.11
Show newest version
package raven

fun SendEmailParams(
    from: String,
    to: String,
    subject: String,
    body: String,
    attachments: List> = emptyList()
) = SendEmailParams(
    from = Address(from),
    to = listOf(Address(to)),
    subject = subject,
    body = body,
    cc = emptyList(),
    bcc = emptyList(),
    attachments = attachments
)

fun SendEmailParams(
    from: Address,
    to: Address,
    subject: String,
    body: String,
    attachments: List> = emptyList()
) = SendEmailParams(
    from = from,
    to = listOf(to),
    subject = subject,
    body = body,
    cc = emptyList(),
    bcc = emptyList(),
    attachments = attachments
)

fun SendEmailParams(
    from: Address,
    to: List
, subject: String, body: String, attachments: List> = emptyList() ) = SendEmailParams( from = from, to = to, subject = subject, body = body, cc = emptyList(), bcc = emptyList(), attachments = attachments )




© 2015 - 2024 Weber Informatics LLC | Privacy Policy