Mercurial Hosting > luan
view src/luan/modules/mail/Mail.luan @ 1365:6617763dfd76
fix logging and lucene backup
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 12 Jun 2019 22:16:10 -0600 |
parents | 8d95711f6615 |
children | fcca0ddf5a4d |
line wrap: on
line source
require "java" local Luan = require "luan:Luan.luan" local error = Luan.error local type = Luan.type or error() local System = require "java:java.lang.System" local SmtpCon = require "java:luan.modules.mail.SmtpCon" local Mail = {} System.setProperty( "mail.mime.charset", "UTF-8" ) function Mail.Sender(params) type(params)=="table" or error() local smtpCon = SmtpCon.new(params) return { send = smtpCon.send } end return Mail