Using new module scheme. Still needs fine tuning.

This commit is contained in:
Diego Nehab 2004-09-27 04:01:18 +00:00
parent e1d318f26c
commit a04f15d1ca
14 changed files with 52 additions and 32 deletions

View file

@ -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