我使用javax.mail,我想将图像附加到邮件正文。
我得到了图片:
messageBodyPart.attachFile(loader.getResource("classpath:imgecalcp/fondoencabezado_marron.png").getFile());
我有一个带有正文邮件的html文件
此文件为:
<div style="padding: 0px">
<p
style="align: left; line-height: 16px; font-size: 10px; color: #009900; font-family: Arial;">
<img src="cid:"cidString/>
[PIE1]
</p>
</div>
java类是
Random rand = new Random();
Integer cid = rand.nextInt(10000) + 1;
String cidString = cid.toString();
Message message = new MimeMessage(session);
message.setFrom(new InternetAddress(from));
message.setRecipients(Message.RecipientType.TO,
InternetAddress.parse(to));
message.setSubject(subject);
MimeMultipart multipart = new MimeMultipart("related");
MimeBodyPart messageBodyPart = new MimeBodyPart();
messageBodyPart.setContent(htmlFinal, "text/html");
multipart.addBodyPart(messageBodyPart);
messageBodyPart = new MimeBodyPart();
final DefaultResourceLoader loader = new DefaultResourceLoader(); messageBodyPart.attachFile(loader.getResource("classpath:imgecalcp/fondoencabezado_marron.png").getFile());
messageBodyPart.setContentID("<" + cidString + ">");
messageBodyPart.setDisposition(MimeBodyPart.INLINE);
multipart.addBodyPart(messageBodyPart);
message.setContent(multipart);
Transport.send(message);
消息发送是;
<div style="font-size:11.0pt;font-family:Calibri,sans-serif;color:#1F497D;font-weight: bold;">
Juan José Herrera Campa
</div>
<div style="font-size:11.0pt;font-family:Calibri,sans-serif;color:#1F497D;font-weight: bold;">
Director General de Costes de Personal y Pensiones Públicas
</div>
<div style="padding: 0px">
<p
style="align: left; line-height: 16px; font-size: 10px; color: #009900; font-family: Arial;">
<img src="cid:"cidString/>
<br />Por favor considera el medio ambiente antes imprimir este mail<br />
</p>
</div>
</body>
</html>
------=_Part_190_22084367.1493884052556
Content-Type: application/octet-stream; name=fondoencabezado_marron.png
Content-Transfer-Encoding: base64
Content-Disposition: inline; filename=fondoencabezado_marron.png
Content-ID: <9827>
iVBORw0KGgoAAAANSUhEUgAABNMAAABaCAIAAAAdA4ccAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJ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9srQ2k2htUgFoj5hVYqQTYb9Qkp1+6pB+
X0Ie6sNdptoC8QSvGxltOl9+NNXWHN8S0j7on/e3JRzG4aSfc28Ps5zZS2qRNlHtoWd0Ol85hqUc
如何生成图像cid并将其写入html文件?
答案 0 :(得分:0)
cid只需要在消息中是唯一的,因此它可以是一个简单的序列号;它不必复杂。你可以把它放在你想要的html文件中,例如,在创建文件时使用它,或者使用某种宏扩展或变量替换工具。