A simple email client for gopher-lua. This library is based on https://github.com/jordan-wright/email for its email functionallity.
local email = require("email")
local myEmail = email.new()
myEmail:from("address@domain.com")
myEmail:to({
"someemail@domain.com"
})
myEmail:html([[
<h1>Hello</h1>
<p>User</p>
]])
myEmail:text([[
hello
user
]])
myEmail:sendTLS("account@email.com", {
-- Auth config
identity = "address@fomain.com";
username = "username";
password = "password";
host = "mail.domain.com";
}, {
-- TLS config
insecureSkipVerify = true;
})