Related questions
Interface/enum listing standard mime-type constants
I am looking among the standard libraries (like apache commons, jax, jboss, javax) for an interface or enum that lists the values of all the standard mime-type (aka content-type).
This interface should not be encumbered with too deep with other …
How to set MimeBodyPart ContentType to "text/html"?
The program below shows an unexpected return value for HTML multipart mime type. Why does this program print "text/plain" and not "text/html"?
public class Main {
public static void main(String[] args) throws javax.mail.MessagingException, java.io.IOException {
…
Inline images in email using JavaMail
I want to send an email with an inline image using javamail.
I'm doing something like this.
MimeMultipart content = new MimeMultipart("related");
BodyPart bodyPart = new MimeBodyPart();
bodyPart.setContent(message, "text/html; charset=ISO-8859-1");
content.addBodyPart(bodyPart);
bodyPart = new MimeBodyPart();
…