Mercurial Hosting > luan
view src/luan/modules/mail/Mail.luan @ 855:fa6158f29c45
remove BufferDateCache and DateCache
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 20 Sep 2016 21:38:44 -0600 |
parents | 1a68fc55a80c |
children | bae2d0c2576c |
line wrap: on
line source
java() local Luan = require "luan:Luan.luan" local assert_table = Luan.assert_table local System = require "java:java.lang.System" local SmtpCon = require "java:luan.modules.mail.SmtpCon" local M = {} System.setProperty( "mail.mime.charset", "UTF-8" ) function M.Sender(params) assert_table(params) local smtpCon = SmtpCon.new(params) return { send = smtpCon.send } end return M