local USERNAME = '' local PASSWORD = '' local SERVER = '' local RECAPTCHAKEY = '' local recaptcha = require 'recaptcha' local markdown = require 'markdown' if recaptcha.validate(RECAPTCHAKEY, request) then html = markdown(request.form.body) email.send { server = SERVER, username = USERNAME, password = PASSWORD, from = 'hello@webscript.io', to = 'hello@webscript.io', subject = '[contact form] '..request.form.subject, text = request.form.body, replyto = request.form.replyto, html = html } return '

Sent the following mail:

' ..'

Subject: '..request.form.subject..'

' ..html, {['Content-Type'] = 'text/html'} else return 'Failed CAPTCHA.' end Demo Code