diff 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 diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/src/luan/modules/mail/Mail.luan	Wed Sep 24 03:39:34 2014 +0000
@@ -0,0 +1,19 @@
+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