1
0
mirror of https://github.com/twiglet/cs2j.git synced 2025-01-18 13:15:17 +01:00

move MailMessage into CS2JLibrary

This commit is contained in:
Kevin Glynn 2011-02-04 06:51:19 +01:00
parent dd23453b72
commit 978db39518
5 changed files with 81 additions and 12 deletions

View File

@ -4,5 +4,6 @@
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry exported="true" kind="lib" path="lib/commons-lang-2.4.jar"/>
<classpathentry exported="true" kind="lib" path="lib/commons-codec-1.4.jar"/>
<classpathentry kind="lib" path="lib/mail.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Class xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:www.twigletsoftware.com:schemas:txtemplate:1:0">
<Imports>
<Import>RusticiSoftware.ScormContentPlayer.Util.MailMessage</Import>
<Import>RusticiSoftware.System.Net.Mail.MailMessage</Import>
</Imports>
<Java>MailMessage</Java>
<Name>System.Net.Mail.MailMessage</Name>

View File

@ -1,5 +1,7 @@
3rd Party Software License
3rd Party Software License
commons-lang, commons-codec Apache 2.0
commons-lang, commons-codec Apache 2.0
mail jar Sun ENTITLEMENT (see http://kenai.com/projects/javamail/pages/License)

BIN
CS2JLibrary/lib/mail.jar Normal file

Binary file not shown.

View File

@ -0,0 +1,66 @@
package RusticiSoftware.System.Net.Mail;
import javax.mail.internet.InternetAddress;
import RusticiSoftware.System.Collections.ArrayListSupport;
public class MailMessage
{
public MailMessage() throws Exception
{
_bcc = new ArrayListSupport();
_cc = new ArrayListSupport();
_to = new ArrayListSupport();
}
private ArrayListSupport _bcc;
private ArrayListSupport _cc;
private ArrayListSupport _to;
private String _body;
private InternetAddress _from;
private String _subject;
public ArrayListSupport getBcc() throws Exception
{
return _bcc;
}
public ArrayListSupport getCC() throws Exception
{
return _cc;
}
public ArrayListSupport getTo() throws Exception
{
return _to;
}
public String getBody() throws Exception
{
return _body;
}
public void setBody(String value) throws Exception
{
_body = value;
}
public InternetAddress getFrom() throws Exception
{
return _from;
}
public void setFrom(InternetAddress value) throws Exception
{
_from = value;
}
public String getSubject() throws Exception
{
return _subject;
}
public void setSubject(String value) throws Exception
{
_subject = value;
}
}