Skip to content

new_text_plain

kumo.mimepart.new_text_plain(CONTENT)
Since: Dev Builds Only

The functionality described in this section requires a dev build of KumoMTA. You can obtain a dev build by following the instructions in the Installation section.

Constructs a new MimePart with Content-Type: text/plain.

The CONTENT parameter must be a UTF-8 string.

Example

local kumo = require 'kumo'
local part = kumo.mimepart.new_text_plain 'Hello!'