Add cc and bcc to item mail

This commit is contained in:
Eike Kettner
2020-11-28 01:36:59 +01:00
parent d62c4a5a72
commit 7052bc6b8e
4 changed files with 72 additions and 2 deletions

View File

@ -68,6 +68,8 @@ object OMail {
item: Ident,
subject: String,
recipients: List[MailAddress],
cc: List[MailAddress],
bcc: List[MailAddress],
body: String,
attach: AttachSelection
)
@ -230,6 +232,8 @@ object OMail {
val fields: Seq[Trans[F]] = Seq(
From(sett.mailFrom),
Tos(m.recipients),
Ccs(m.cc),
Bccs(m.bcc),
XMailer.emil,
Subject(m.subject),
TextBody[F](m.body)