fixes issue 21598: SMTP Authentication parameter is not being retrieved properly
authorCarlos Aristu <carlos.aristu@openbravo.com>
Wed, 19 Sep 2012 18:08:56 +0200
changeset 17985 a15fcd799ebf
parent 17984 7e0c66407ed1
child 17986 ce64e9cc6a7d
fixes issue 21598: SMTP Authentication parameter is not being retrieved properly
src/org/openbravo/erpCommon/utility/reporting/printing/PrintController.java
--- a/src/org/openbravo/erpCommon/utility/reporting/printing/PrintController.java	Wed Sep 19 17:49:12 2012 +0200
+++ b/src/org/openbravo/erpCommon/utility/reporting/printing/PrintController.java	Wed Sep 19 18:08:56 2012 +0200
@@ -710,7 +710,7 @@
 
       host = mailConfig.getSmtpServer();
 
-      if ("N".equals(mailConfig.isSMTPAuthentification())) {
+      if (!mailConfig.isSMTPAuthentification()) {
         auth = false;
       }
       username = mailConfig.getSmtpServerAccount();