svn commit: r799507 - /ofbiz/trunk/framework/common/src/org/ofbiz/common/email/EmailServices.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r799507 - /ofbiz/trunk/framework/common/src/org/ofbiz/common/email/EmailServices.java

lektran
Author: lektran
Date: Fri Jul 31 03:35:48 2009
New Revision: 799507

URL: http://svn.apache.org/viewvc?rev=799507&view=rev
Log:
Returning a messageWrapper even if mail notifications are disabled seems to work fine and it gets rid of that annoying service exception

Modified:
    ofbiz/trunk/framework/common/src/org/ofbiz/common/email/EmailServices.java

Modified: ofbiz/trunk/framework/common/src/org/ofbiz/common/email/EmailServices.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/src/org/ofbiz/common/email/EmailServices.java?rev=799507&r1=799506&r2=799507&view=diff
==============================================================================
--- ofbiz/trunk/framework/common/src/org/ofbiz/common/email/EmailServices.java (original)
+++ ofbiz/trunk/framework/common/src/org/ofbiz/common/email/EmailServices.java Fri Jul 31 03:35:48 2009
@@ -284,6 +284,7 @@
         if (!"Y".equalsIgnoreCase(mailEnabled)) {
             // no error; just return as if we already processed
             Debug.logImportant("Mail notifications disabled in general.properties; What would have been sent, the addressee: " + sendTo + " subject: " + subject + " context: " + context, module);
+            results.put("messageWrapper", new MimeMessageWrapper(session, mail));
             return results;
         }