summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/util-soc-imp-smtp.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2018-09-12 01:13:39 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2018-09-12 01:13:39 +0200
commit5c433e6e8accaa4bc9ebe0a094b925fe11a8edf5 (patch)
tree7b4b1b7efe2225b4694cc6f7c50707206f8d5b06 /tex/context/base/mkiv/util-soc-imp-smtp.lua
parentfd9c4ecd4421d087de21bef1e53d8ffb016285b0 (diff)
downloadcontext-5c433e6e8accaa4bc9ebe0a094b925fe11a8edf5.tar.gz
2018-09-12 00:46:00
Diffstat (limited to 'tex/context/base/mkiv/util-soc-imp-smtp.lua')
-rw-r--r--tex/context/base/mkiv/util-soc-imp-smtp.lua4
1 files changed, 2 insertions, 2 deletions
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)