Files
kumomta/docs/reference/kumo.mimepart/new_html.md
T
Wez Furlong 1bf9d138ce extended lua mime parsing API
refs: https://github.com/KumoCorp/kumomta/issues/117

Could also make it possible to do eg:
https://github.com/KumoCorp/kumomta/issues/142
without any explicit direct support in the product.
2025-09-09 09:15:58 +01:00

309 B

new_html

kumo.mimepart.new_html(CONTENT)

{{since('dev')}}

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

The CONTENT parameter must be a UTF-8 string.

Example

local kumo = require 'kumo'
local part = kumo.mimepart.new_html '<b>Hello</b>!'