[prev in list] [next in list] [prev in thread] [next in thread]
List: jboss-cvs-commits
Subject: [jboss-cvs] nukes/nukes/src/main/org/jboss/nukes/core/modules/mail MailModule.java
From: Julien Viet <cooperfbi () users ! sourceforge ! net>
Date: 2004-01-31 0:13:38
Message-ID: E1AmilW-00048l-1n () sc8-pr-cvs1 ! sourceforge ! net
[Download RAW message or body]
User: cooperfbi
Date: 04/01/30 16:13:37
Modified: nukes/src/main/org/jboss/nukes/core/modules/mail
MailModule.java
Log:
added the date header on the mails sent
Revision Changes Path
1.3 +3 -1 nukes/nukes/src/main/org/jboss/nukes/core/modules/mail/MailModule.java
Index: MailModule.java
===================================================================
RCS file: /cvsroot/jboss/nukes/nukes/src/main/org/jboss/nukes/core/modules/mail/MailModule.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- MailModule.java 11 Nov 2003 01:22:08 -0000 1.2
+++ MailModule.java 31 Jan 2004 00:13:37 -0000 1.3
@@ -36,12 +36,13 @@
import java.util.Comparator;
import java.util.Iterator;
import java.util.Properties;
+import java.util.Date;
/**
* A basic implementation of some mails services.
*
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.2 $
+ * @version $Revision: 1.3 $
*/
public class MailModule
extends ModuleSupport
@@ -294,6 +295,7 @@
message.setFrom(new InternetAddress(from));
message.setSubject(subject);
message.setText(body);
+ message.setSentDate(new Date());
transport.sendMessage(message, new InternetAddress[]{new InternetAddress(to)});
return true;
}
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
jboss-cvs-commits mailing list
jboss-cvs-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-cvs-commits
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic