HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2013-05-24 f52ab72b7ae944f366c8dc5a86fc8f25bc8da839
error sending tickets to otrs
1 files modified
3 ■■■■■ changed files
hsarback/src/de/hsadmin/core/qserv/SmtpHelper.java 3 ●●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/core/qserv/SmtpHelper.java
@@ -27,6 +27,9 @@
            SMTPClient client = new SMTPClient();
            String canonicalHostName = InetAddress.getLocalHost().getHostName();
            String smtpHost = Config.getInstance().getProperty("smtp.host");
            if (smtpHost == null || smtpHost.trim().isEmpty()) {
                smtpHost = "localhost";
            }
            if ("unittest".equals(smtpHost)) { // Nur fuer Unit-Tests
                if (subject.toLowerCase().contains("error")) {
                    throw new HSAdminException("Konnte Mail nicht senden");