Author: hansbak
Date: Sun Sep 10 23:56:41 2006
New Revision: 442113
URL:
http://svn.apache.org/viewvc?view=rev&rev=442113Log:
outgoing email had the date not set, also now set the xmailer header info
Modified:
incubator/ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailServices.java
Modified: incubator/ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailServices.java
URL:
http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailServices.java?view=diff&rev=442113&r1=442112&r2=442113==============================================================================
--- incubator/ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailServices.java (original)
+++ incubator/ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailServices.java Sun Sep 10 23:56:41 2006
@@ -32,8 +32,6 @@
import java.util.HashMap;
import java.util.Properties;
import java.sql.Timestamp;
-import java.util.Date;
-import java.util.Calendar;
import javax.activation.DataHandler;
import javax.activation.DataSource;
@@ -49,6 +47,7 @@
import javax.mail.MessagingException;
import javax.mail.Multipart;
import javax.mail.Part;
+import java.util.Date;
import javolution.util.FastList;
import javolution.util.FastMap;
@@ -189,6 +188,8 @@
MimeMessage mail = new MimeMessage(session);
mail.setFrom(new InternetAddress(sendFrom));
mail.setSubject(subject);
+ mail.setHeader("X-Mailer", "OFBiz, Open For Business ERP at www.ofbiz.org");
+ mail.setSentDate(new Date());
mail.addRecipients(Message.RecipientType.TO, sendTo);
if (UtilValidate.isNotEmpty(sendCc)) {