localmailthreads.java

来自「基于java的电子邮件群发系统,基于java的电子邮件群发系统」· Java 代码 · 共 33 行

JAVA
33
字号
package com.cwq.batchmail.mail;

import java.io.File;
import java.io.IOException;
import java.util.Vector;

import com.cwq.batchmail.log.Logger;

public class LocalMailThreads extends AbstractMailThreads {
	
	SmtpUser localUser;

	public LocalMailThreads(Logger logger, String domain, File emails, int limitemails, String sendmail)
			throws IOException {
		
		super();
		
		this.setLogger(logger);
		this.runSmtpServer(domain);
		
		this.setUseproxy(false);
		this.setUseLocalsmtpserver(true);
		this.localUser = new SmtpUser("127.0.0.1", 25, sendmail, "", 1);
		
		loadEMails(emails, limitemails);
	}
	
	synchronized protected SmtpUser nextUser() {
		return localUser;
	}

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?