From b0fb0517a7537fa53d23c274861116f1dcefbe59 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sun, 21 Nov 2021 16:33:41 +0000 Subject: [Minor] Mx check: Emit quit command Issue: #3966 --- lualib/lua_smtp.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lualib') diff --git a/lualib/lua_smtp.lua b/lualib/lua_smtp.lua index a15f1ae17..256da0522 100644 --- a/lualib/lua_smtp.lua +++ b/lualib/lua_smtp.lua @@ -59,7 +59,7 @@ local function sendmail(opts, message, callback) mdata = tostring(mdata) end if string.sub(mdata, 1, 1) ~= wantcode then - callback(false, string.format('bad smtp responce on stage %s: "%s" when "%s" expected', + callback(false, string.format('bad smtp response on stage %s: "%s" when "%s" expected', stage, mdata, wantcode)) if conn then conn:close() @@ -169,7 +169,7 @@ local function sendmail(opts, message, callback) end end - -- HELLO stage + -- HELO stage local function hello_cb(merr) if no_error_write(merr) then conn:add_read(hello_done_cb, CRLF) -- cgit v1.2.3