Sample code for 30+ languages & platforms
Lua

Create Email with Embedded Link

Creating an email with an embedded link (HTML hyperlink).

Chilkat Lua Downloads

Lua
local chilkat = require("chilkat")

local email = chilkat.Email.new()

-- To create an email with an embedded link, use HTML:
local html = "<html><body><p>Click here for more information: <a href=\"http://www.chilkatsoft.com/\">Chilkat Software</a></body></html>"

email:set_html_body(html)

-- Continue building the email by adding the subject, recipients, etc...

local mime = email:get_mime()
print(mime)