Mercurial Hosting > luan
comparison 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 |
comparison
equal
deleted
inserted
replaced
227:c0f87c1ba99f | 228:7580379cdc79 |
---|---|
1 import "Package" | |
2 | |
3 if Package.is_blocked "mail/Mail" then | |
4 error "Mail is blocked" | |
5 end | |
6 | |
7 | |
8 import "Java" | |
9 import "java.lang.System" | |
10 import "luan.modules.mail.SmtpCon" | |
11 | |
12 | |
13 System.setProperty( "mail.mime.charset", "UTF-8" ) | |
14 | |
15 | |
16 function Sender(params) | |
17 assert_table(params) | |
18 return SmtpCon.new(params).table() | |
19 end |