FTP low-level working.
SMTP connection oriented working. ltn12 improved.
This commit is contained in:
parent
4fc164b8ea
commit
888496aa82
15 changed files with 701 additions and 659 deletions
|
@ -1,3 +1,5 @@
|
|||
sink = ltn12.sink.file(io.open("lixo", "w"))
|
||||
source = ltn12.source.file(io.open("luasocket", "r"))
|
||||
ltn12.pump(source, sink)
|
||||
a = ltn12.source.file(io.open("luasocket.lua"))
|
||||
b = ltn12.source.file(io.open("auxiliar.lua"))
|
||||
c = ltn12.source.cat(a, b)
|
||||
d = ltn12.sink.file(io.stdout)
|
||||
socket.try(ltn12.pump.all(c, d))
|
||||
|
|
|
@ -49,5 +49,6 @@ print(socket.smtp.send {
|
|||
rcpt = "<diego@cs.princeton.edu>",
|
||||
from = "<diego@cs.princeton.edu>",
|
||||
source = socket.smtp.message(mesgt),
|
||||
server = "mail.cs.princeton.edu"
|
||||
server = "mail.iis.com.br",
|
||||
port = 7
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue