E8邮件代码

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();
    }

 

posted @ 2023-05-06 08:42  血月葬花魂  阅读(22)  评论(0编辑  收藏  举报