mail:addBlindCopyTo(address: string) --nil Adds an email address to the list of BCC (Blind-Copy-To) recipients for this email.
mail:addCopyTo(address: string) --nil Adds an email address to the list of CC (Copy-To) recipients for this email.
mail:addSendTo(address: string) --nil Adds an email address to the list of Send-To recipients for this email.
mail:send(from: string, subject: string) --nil Sends the email.
At least one recipient must be specified using {{mail/mail:addCopyTo}}, {{mail/mail:addBlindCopyTo}}, or {{mail/mail:addSendTo}}.
The "from" address can include a display name by prefixing the email address with the name and enclosing the address in angle brackets.
local mail = domino.createMail("Example")
mail:setBody("This is the body!")
mail:addSendTo("to@example.com") -- Use addBlindCopyTo and addCopyTo in the same way
mail:send("from@example.com", "Mail Subject") mail:setBody(body: string, contentType: string | nil) --nil Sets the body of the email.
The optional second parameter specifies the Content-Type of the message. The default is text/html. Only UTF-8 character encoding is supported.