mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-26 12:28:21 +01:00
Merge pull request #22 from Florob/smtp
Send SMTP AUTH LOGIN response using tp:send(). Fixes #18
This commit is contained in:
commit
a402222464
@ -75,9 +75,9 @@ end
|
|||||||
function metat.__index:login(user, password)
|
function metat.__index:login(user, password)
|
||||||
self.try(self.tp:command("AUTH", "LOGIN"))
|
self.try(self.tp:command("AUTH", "LOGIN"))
|
||||||
self.try(self.tp:check("3.."))
|
self.try(self.tp:check("3.."))
|
||||||
self.try(self.tp:command(mime.b64(user)))
|
self.try(self.tp:send(mime.b64(user) .. "\r\n"))
|
||||||
self.try(self.tp:check("3.."))
|
self.try(self.tp:check("3.."))
|
||||||
self.try(self.tp:command(mime.b64(password)))
|
self.try(self.tp:send(mime.b64(password) .. "\r\n"))
|
||||||
return self.try(self.tp:check("2.."))
|
return self.try(self.tp:check("2.."))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user