home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 7: Programming / CDAT7.iso / Share / Java / JDesignerPro / Jdp3_0.exe / data1.cab / Program_Files / JDPMain.jar / JDPEmailSender.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-08-26  |  2.4 KB  |  126 lines

  1. public class JDPEmailSender {
  2.    JDPUser user;
  3.    // $FF: renamed from: s JDPSaveProps
  4.    JDPSaveProps field_0;
  5.    JDPJagg jaggSQL;
  6.  
  7.    public void setMailServer(String var1) {
  8.       this.field_0.saveObject("mailServer", var1);
  9.    }
  10.  
  11.    public void setToAddress(String var1) {
  12.       this.field_0.saveObject("toAddress", var1);
  13.    }
  14.  
  15.    public void setAttachment(String var1) {
  16.       this.field_0.saveObject("attachment", var1);
  17.    }
  18.  
  19.    public void setPWD(String var1) {
  20.       if (this.jaggSQL == null) {
  21.          this.jaggSQL = new JDPJagg(this.user.jaggPath);
  22.       }
  23.  
  24.       this.jaggSQL.setPWD(var1);
  25.    }
  26.  
  27.    public void setJdbcPrefix(String var1) {
  28.       if (this.jaggSQL == null) {
  29.          this.jaggSQL = new JDPJagg(this.user.jaggPath);
  30.       }
  31.  
  32.       this.jaggSQL.setJdbcPrefix(var1);
  33.    }
  34.  
  35.    public void setReturnAddress(String var1) {
  36.       this.field_0.saveObject("returnAddress", var1);
  37.    }
  38.  
  39.    public void setMessage(String var1) {
  40.       this.field_0.saveObject("message", var1);
  41.    }
  42.  
  43.    public void setFromWhereClause(String var1) {
  44.       this.field_0.saveObject("whereClause", var1);
  45.    }
  46.  
  47.    public void sendSingleMessage() {
  48.       this.field_0.saveObject("messageFunction", "sendSingleMessage");
  49.       new JDPSubmitJob(this.user, this.jaggSQL, "JDPMessageSvr", this.field_0, (Object)null);
  50.       this.user.mainmsg.setStatusMsg("Email job submitted", 5);
  51.    }
  52.  
  53.    public void setSQL(String var1) {
  54.       this.field_0.saveObject("SQL", var1);
  55.    }
  56.  
  57.    public void sendMultipleMessage() {
  58.       this.field_0.saveObject("messageFunction", "sendBulkMail");
  59.       if (this.jaggSQL != null) {
  60.          new JDPSubmitJob(this.user, this.jaggSQL, "JDPMessageSvr", this.field_0, (Object)null);
  61.          this.user.mainmsg.setStatusMsg("Email job submitted", 5);
  62.       } else {
  63.          this.user.mainmsg.setStatusMsg("Cannot submit Mail job. Jagg instance is null", 15);
  64.       }
  65.    }
  66.  
  67.    public void setJdbcDriver(String var1) {
  68.       if (this.jaggSQL == null) {
  69.          this.jaggSQL = new JDPJagg(this.user.jaggPath);
  70.       }
  71.  
  72.       this.jaggSQL.setJdbcDriver(var1);
  73.    }
  74.  
  75.    public void setCSTR(String var1) {
  76.       if (this.jaggSQL == null) {
  77.          this.jaggSQL = new JDPJagg(this.user.jaggPath);
  78.       }
  79.  
  80.       this.jaggSQL.setCSTR(var1);
  81.    }
  82.  
  83.    public void setUID(String var1) {
  84.       if (this.jaggSQL == null) {
  85.          this.jaggSQL = new JDPJagg(this.user.jaggPath);
  86.       }
  87.  
  88.       this.jaggSQL.setUID(var1);
  89.    }
  90.  
  91.    public JDPEmailSender(JDPUser var1) {
  92.       this.user = var1;
  93.       this.field_0 = new JDPSaveProps(var1);
  94.    }
  95.  
  96.    public JDPEmailSender(JDPUser var1, JDPJagg var2) {
  97.       this.user = var1;
  98.       this.jaggSQL = var2;
  99.       this.field_0 = new JDPSaveProps(var1);
  100.    }
  101.  
  102.    public void setMergeColumns(String[] var1) {
  103.       this.field_0.saveObject("columns", var1);
  104.    }
  105.  
  106.    public void setDSN(String var1) {
  107.       if (this.jaggSQL == null) {
  108.          this.jaggSQL = new JDPJagg(this.user.jaggPath);
  109.       }
  110.  
  111.       this.jaggSQL.setDSN(var1);
  112.    }
  113.  
  114.    public void setJdbcSuffix(String var1) {
  115.       if (this.jaggSQL == null) {
  116.          this.jaggSQL = new JDPJagg(this.user.jaggPath);
  117.       }
  118.  
  119.       this.jaggSQL.setJdbcSuffix(var1);
  120.    }
  121.  
  122.    public void setMessageSubject(String var1) {
  123.       this.field_0.saveObject("messageSubject", var1);
  124.    }
  125. }
  126.