Subversion Repositories DevTools

Rev

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

Rev 7047 Rev 7071
Line 69... Line 69...
69
    {
69
    {
70
      send("smtp-au.vix.local", "dpurdie@vixtechnology.com", "mrblobby,dpurdie@vixtechnology.com", "", "", "test", "test", null);
70
      send("smtp-au.vix.local", "dpurdie@vixtechnology.com", "mrblobby,dpurdie@vixtechnology.com", "", "", "test", "test", null);
71
    }
71
    }
72
    catch( Exception e )
72
    catch( Exception e )
73
    {
73
    {
74
      
74
        // Keep quiet
75
    }
75
    }
76
  }
76
  }
77
 
77
 
78
  public static void send(String mailServer, String source, String target, String cc, String bcc, String subject, String body, String attachment) throws Exception
78
  public static void send(String mailServer, String source, String target, String cc, String bcc, String subject, String body, String attachment) throws Exception
79
  {
79
  {
Line 167... Line 167...
167
 
167
 
168
    // send the thing off
168
    // send the thing off
169
    /*
169
    /*
170
     * The simple way to send a message is this:
170
     * The simple way to send a message is this:
171
     *
171
     *
172
    Transport.send(msg);
172
     *  Transport.send(msg);
173
     *
173
     *
174
     * But we're going to use some SMTP-specific features for
174
     * But we're going to use some SMTP-specific features for
175
     * demonstration purposes so we need to manage the Transport
175
     * demonstration purposes so we need to manage the Transport
176
     * object explicitly.
176
     * object explicitly.
177
     */
177
     */