Using new module scheme. Still needs fine tuning.
This commit is contained in:
parent
e1d318f26c
commit
a04f15d1ca
14 changed files with 52 additions and 32 deletions
10
src/smtp.lua
10
src/smtp.lua
|
@ -6,13 +6,19 @@
|
|||
-----------------------------------------------------------------------------
|
||||
|
||||
-----------------------------------------------------------------------------
|
||||
-- Load required modules
|
||||
-- Declare module and import dependencies
|
||||
-----------------------------------------------------------------------------
|
||||
local socket = require("socket")
|
||||
local tp = require("socket.tp")
|
||||
|
||||
local ltn12 = require("ltn12")
|
||||
local mime = require("mime")
|
||||
local tp = require("tp")
|
||||
|
||||
module("socket.smtp")
|
||||
|
||||
-----------------------------------------------------------------------------
|
||||
-- Program constants
|
||||
-----------------------------------------------------------------------------
|
||||
-- timeout for connection
|
||||
TIMEOUT = 60
|
||||
-- default server used to send e-mails
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue