details:   https://code.openbravo.com/erp/devel/pi/rev/dfd3357a0a14
changeset: 24320:dfd3357a0a14
user:      Daniel Ruiz <daniel.ruiz <at> openbravo.com>
date:      Mon Aug 25 09:49:03 2014 +0200
summary:   Fixes bug 26987:Some email providers need date (not null)

diffstat:

 src/org/openbravo/erpCommon/ad_process/AlertProcess.java                    |  
4 ++--
 src/org/openbravo/erpCommon/utility/reporting/printing/PrintController.java |  
2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diffs (31 lines):

diff -r a66b944d48d7 -r dfd3357a0a14 
src/org/openbravo/erpCommon/ad_process/AlertProcess.java
--- a/src/org/openbravo/erpCommon/ad_process/AlertProcess.java  Wed Aug 20 
11:08:12 2014 +0200
+++ b/src/org/openbravo/erpCommon/ad_process/AlertProcess.java  Mon Aug 25 
09:49:03 2014 +0200
@@ -457,7 +457,7 @@
                       targetUserClientLanguage) + "\n" + finalMessage;
                   final String contentType = "text/plain; charset=utf-8";
                   final List<File> attachments = null;
-                  final Date sentDate = null;
+                  final Date sentDate = new Date();
                   final List<String> headerExtras = null;
 
                   final Object[] email = { host, auth, username, password, 
connSecurity, port,
@@ -540,4 +540,4 @@
       }
     }
   }
-}
\ No newline at end of file
+}
diff -r a66b944d48d7 -r dfd3357a0a14 
src/org/openbravo/erpCommon/utility/reporting/printing/PrintController.java
--- 
a/src/org/openbravo/erpCommon/utility/reporting/printing/PrintController.java   
    Wed Aug 20 11:08:12 2014 +0200
+++ 
b/src/org/openbravo/erpCommon/utility/reporting/printing/PrintController.java   
    Mon Aug 25 09:49:03 2014 +0200
@@ -815,7 +815,7 @@
     try {
       EmailManager.sendEmail(host, auth, username, password, connSecurity, 
port, senderAddress,
           recipientTO, recipientCC, recipientBCC, replyTo, emailSubject, 
emailBody, contentType,
-          attachments, null, null);
+          attachments, new Date(), null);
     } catch (Exception exception) {
       log4j.error(exception);
       final String exceptionClass = 
exception.getClass().toString().replace("class ", "");

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to