The Oracle documentation is confusing: - as system property: https://docs.oracle.com/javaee/6/api/javax/mail/internet/package-summary.html - as session property: https://docs.oracle.com/javaee/6/api/javax/mail/internet/MimeMessage.html