if (rs1.next()) { mailname = rs1.getString("email"); lastname = rs1.getString("lastname"); ArrayList filenames = new ArrayList(); ArrayList filecontents = new ArrayList(); String emailcontents = lastname + ":你好" + "\r\n" + "部门:" + depName + "已废弃,需要更换部门,请及时调整!"; String emailTitle = "机台所属部门已废弃"; SendRemindMail(mailname, emailTitle, emailcontents, filenames, filecontents); }
邮件发送代码
private void SendRemindMail(String custEmail, String emailTitle, String emailContent, ArrayList filenames, ArrayList filecontents) { new Thread(new WorkflowSendMailRunnable(custEmail, emailTitle, emailContent, filenames, filecontents)).start(); }
标签:emailTitle,String,filecontents,代码,filenames,E8,new,ArrayList,邮件 From: https://www.cnblogs.com/yitian-lg/p/17375897.html