Skip to content

new_text_plain

kumo.mimepart.new_text_plain(CONTENT)
Since: Version 2025.10.06-5ec871ab

The functionality described in this section requires version 2025.10.06-5ec871ab of KumoMTA, or a more recent version.

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!'