Java Encoding Base64, MimeBodyPart Attachment
问题 I have a PDF Files Encoded with Base64, now I want to send the PDF's and allow to open from mail. I was reading this question, But IS not working for me https://stackoverflow.com/a/9124625/811293 Message message = new MimeMessage(session); message.setFrom(new InternetAddress(from)); message.setSentDate(new Date()); message.setRecipients(Message.RecipientType.TO, InternetAddress.parse(sendTo)); message.setSubject("Subject - " + new Date()); Multipart multipart = new MimeMultipart();