This is what I do when i want to send email with attachment, work fine. :) public class NewClass { public static void main(String[] args) { try { Properties props = System.getProperties(); props.put("mail.smtp.starttls.enable", "true"); […]
