我嘗試添加在電子郵件標題一些上市相關的頭線,但它不工作..JavaMail的阿比上市頭不起作用
msg.addHeader("List-ID", lmsg.getListId());
msg.addHeader("List-Archive", lmsg.getListId());
msg.setHeader("List-Post", lmsg.getListId());
msg.setHeader("List-Unsubscribe", lmsg.getListId());
msg.setHeader("X-Mailer", mailer);
msg.setSentDate(lmsg.getSendDate());
Transport.send(msg);
沒什麼列表標題行的是在接收但是x-mailer行仍然在...
我的錯在哪裏?
乾杯