comparison website/src/examples/upload-and-email.html.luan @ 1259:e8020216dee7

add Luan.to_luan and fix multipart/form-data
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 23 Sep 2018 17:58:40 -0600
parents 4c2972f4d862
children 60d013d5c7ef
comparison
equal deleted inserted replaced
1258:e4d7a3114fa8 1259:e8020216dee7
2 local Http = require "luan:http/Http.luan" 2 local Http = require "luan:http/Http.luan"
3 local Mail = require "luan:mail/Mail.luan" 3 local Mail = require "luan:mail/Mail.luan"
4 4
5 5
6 local send = Mail.Sender{ 6 local send = Mail.Sender{
7 host = "smtpcorp.com"; 7 host = "smtpcorp.com"
8 username = "smtp@luanhost.com"; 8 username = "smtp@luanhost.com"
9 password = "luanhost"; 9 password = "luanhost"
10 port = 2525; 10 port = 2525
11 }.send 11 }.send
12 12
13 local function form() 13 local function form()
14 %> 14 %>
15 <!doctype html> 15 <!doctype html>