local username = '<SMTP USERNAME>'
local password = '<SMTP PASSWORD>'
local server = '<SMTP SERVER>'
email.send {
server=server, username=username, password=password,
from='hello@webscript.io', -- replace with your 'from' address
to='hello@webscript.io', -- replace with your 'to' address
subject='Anonymous greeting',
text=request.form.message
}
return "Email sent. Thanks!"