我的代码示例是:
private String _body;
private String _forward;
// setup message body
BodyPart messageBodyPart = new MimeBodyPart();
messageBodyPart.setContent(_body + "\n" + "--------------------------------" + "\n" + _forward , "text/html");
_multipart.addBodyPart(messageBodyPart);
当我将此消息发送到我的电子邮件地址时,它显示:
_body = "耶尼雅子" and _forward = "deneme mail 2"