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:
parent
dd23453b72
commit
978db39518
@ -1,8 +1,9 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<classpath>
|
<classpath>
|
||||||
<classpathentry kind="src" path="src"/>
|
<classpathentry kind="src" path="src"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
<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-lang-2.4.jar"/>
|
||||||
<classpathentry exported="true" kind="lib" path="lib/commons-codec-1.4.jar"/>
|
<classpathentry exported="true" kind="lib" path="lib/commons-codec-1.4.jar"/>
|
||||||
<classpathentry kind="output" path="bin"/>
|
<classpathentry kind="lib" path="lib/mail.jar"/>
|
||||||
</classpath>
|
<classpathentry kind="output" path="bin"/>
|
||||||
|
</classpath>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?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">
|
<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>
|
<Imports>
|
||||||
<Import>RusticiSoftware.ScormContentPlayer.Util.MailMessage</Import>
|
<Import>RusticiSoftware.System.Net.Mail.MailMessage</Import>
|
||||||
</Imports>
|
</Imports>
|
||||||
<Java>MailMessage</Java>
|
<Java>MailMessage</Java>
|
||||||
<Name>System.Net.Mail.MailMessage</Name>
|
<Name>System.Net.Mail.MailMessage</Name>
|
||||||
|
@ -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
BIN
CS2JLibrary/lib/mail.jar
Normal file
Binary file not shown.
66
CS2JLibrary/src/RusticiSoftware/System/Net/Mail/MailMessage.java
Executable file
66
CS2JLibrary/src/RusticiSoftware/System/Net/Mail/MailMessage.java
Executable 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;
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user