Subversion Repositories DevTools

Rev

Rev 924 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 924 Rev 4285
Line 91... Line 91...
91
            
91
            
92
    Properties props = System.getProperties();
92
    Properties props = System.getProperties();
93
    props.put( "mail.smtp.host", mailServer );
93
    props.put( "mail.smtp.host", mailServer );
94
    props.put( "mail.smtp.sendpartial", "true" );
94
    props.put( "mail.smtp.sendpartial", "true" );
95
 
95
 
-
 
96
    //  Unit Test Support
-
 
97
    //      Don't send any emails at all
-
 
98
    //
-
 
99
    if (System.getProperty("vix.utf.name") != null) {
-
 
100
        System.err.println("com.erggroup.buildtool.smtp: Send supressed by UTF flags");
-
 
101
        return;
-
 
102
    }
-
 
103
 
96
    // Debug support - send all emails to one person
104
    // Debug support - send all emails to one person
97
    String gbeBtDebug = System.getenv("GBE_BUILDTOOL_DEBUG");
105
    String gbeBtDebug = System.getenv("GBE_BUILDTOOL_DEBUG");
98
    if ( gbeBtDebug != null && gbeBtDebug.length() > 1  )
106
    if ( gbeBtDebug != null && gbeBtDebug.length() > 1  )
99
    {
107
    {
100
      target = gbeBtDebug;
108
      target = gbeBtDebug;
-
 
109
      subject = "BUILDTOOL DEBUG: " + subject;
101
      cc = null;
110
      cc = null;
102
      bcc = null;
111
      bcc = null;
103
    }
112
    }
104
    
-
 
105
 
113
 
106
    // Get a Session object
114
    // Get a Session object
107
    Session session = Session.getInstance( props, null );
115
    Session session = Session.getInstance( props, null );
108
 
116
 
109
    // construct the message
117
    // construct the message