📄 detailpacket.java
字号:
package com.cwq.batchmail;
import java.io.File;
public final class DetailPacket {
public static void init() {
try {
imagesPath = new File(imagesPath).toURL().toString();
icon = new File(icon).toURL().toString();
} catch(Exception ex) { ex.printStackTrace(); }
}
public static boolean isOk() {
return
(
((useProxy && (proxyFile != null && proxyFile.trim().length() > 0)) || !useProxy)
&& ((!useSmtpServer && (smtpFile != null && smtpFile.trim().length() > 0)) || useSmtpServer)
&& (emailFile != null && emailFile.trim().length() > 0)
&& (limitEmails > 0)
&& (threadCount > 0)
&& (mailSubject != null && mailSubject.trim().length() > 0)
&& (mailBody != null && mailBody.trim().length() > 0)
);
}
public static String icon = "res" + File.separator + "gmail.gif";
public static String title = "BatchMail v1.0";
public static String imagesPath = "res" + File.separator;;
public static int limitEmails = 10000000;
public static String emailFile = null;
public static String smtpFile = null;
public static String proxyFile = null;
public static boolean useProxy = false;
public static boolean useSmtpServer = true;
public static int threadCount = 10;
public static String mailContentType = "text/html; charset=iso-8859-1";
public static String mailSubject = "send by batchmail v1.0";
public static String mailBody = "jsp-tech.cn, batchmail v1.0";
public static String sendMail = "batchmail@jsp-tech.cn";
public static String serverDomain = "jsp-tech.cn";
public static String powerBy = "jsp-tech.cn, batchmail v1.0";
public static boolean isRunning = false;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -