This example is sending a simple text e-mail.
local smtp = require("socket.smtp")
wiadomosc = {
headers = {
to = "<tomaaz@mailmix.pl>",
subject = "Test"
},
body = "This is a test message."
}
smtp.send{
from = "<egsl.user@retrogamecoding.org>",
rcpt = "<tomaaz@mailmix.pl>",
source = smtp.message(wiadomosc)
}