Mercurial Hosting > luan
view mail/src/luan/modules/mail/Mail.luan @ 228:7580379cdc79
implement basic mail smtp
git-svn-id: https://luan-java.googlecode.com/svn/trunk@229 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Wed, 24 Sep 2014 03:39:34 +0000 |
parents | |
children | 2a54cb7d1cf4 |
line wrap: on
line source
import "Package" if Package.is_blocked "mail/Mail" then error "Mail is blocked" end import "Java" import "java.lang.System" import "luan.modules.mail.SmtpCon" System.setProperty( "mail.mime.charset", "UTF-8" ) function Sender(params) assert_table(params) return SmtpCon.new(params).table() end