From 5c433e6e8accaa4bc9ebe0a094b925fe11a8edf5 Mon Sep 17 00:00:00 2001 From: Hans Hagen Date: Wed, 12 Sep 2018 01:13:39 +0200 Subject: 2018-09-12 00:46:00 --- tex/context/base/mkiv/util-soc-imp-smtp.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tex/context/base/mkiv/util-soc-imp-smtp.lua') diff --git a/tex/context/base/mkiv/util-soc-imp-smtp.lua b/tex/context/base/mkiv/util-soc-imp-smtp.lua index 62c05700b..621d1b6e3 100644 --- a/tex/context/base/mkiv/util-soc-imp-smtp.lua +++ b/tex/context/base/mkiv/util-soc-imp-smtp.lua @@ -3,7 +3,7 @@ local type, setmetatable, next = type, setmetatable, next local find, lower, format = string.find, string.lower, string.format -local osdate, osgetenv = os.data, os.getenv +local osdate, osgetenv = os.date, os.getenv local random = math.random local socket = socket or require("socket") @@ -254,7 +254,7 @@ function smtp.message(message) end smtp.send = protectsocket(function(mail) - local snd = opensmtp(mail.server, mail.port, mail.create) + local snd = opensmtp(smtp,mail.server, mail.port, mail.create) local ext = snd:greet(mail.domain) snd:auth(mail.user, mail.password, ext) snd:send(mail) -- cgit v1.2.3