Mercurial Hosting > luan
comparison website/src/examples/upload-and-email.html.luan @ 1521:d3e61cd2aca0
docs and shell bug fix
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Thu, 25 Jun 2020 23:17:14 -0600 |
| parents | 60d013d5c7ef |
| children | 13135e289b50 |
comparison
equal
deleted
inserted
replaced
| 1520:d9a5405a3102 | 1521:d3e61cd2aca0 |
|---|---|
| 44 if email == nil then | 44 if email == nil then |
| 45 form() | 45 form() |
| 46 else | 46 else |
| 47 local file = Http.request.parameters.file | 47 local file = Http.request.parameters.file |
| 48 send{ | 48 send{ |
| 49 from = "smtp@luan.ws"; | 49 from = "smtp@luan.ws" |
| 50 to = email; | 50 to = email |
| 51 subject = "Upload and Email"; | 51 subject = "Upload and Email" |
| 52 body = "file should be attached"; | 52 body = "file should be attached" |
| 53 attachments = {file}; | 53 attachments = {file} |
| 54 } | 54 } |
| 55 sent() | 55 sent() |
| 56 end | 56 end |
| 57 end | 57 end |
