Detected 1 occurrence(s) of ‘\s*pass[word]+\s*[:=]\s*["'][a-z0-9\-_\!\$]+["']‘: props.put("mail.smtp.socketFactory.fallback", "false"); Session session1 = Session.getDefaultInstance(props, new Authenticator() { @Override protected PasswordAuthentication getPasswordAuthentication() { String username = "abc@yahoo.ca"; String password = "mypassword"; return new PasswordAuthentication(username, password); } }); MimeMessage msg = new MimeMessage(session1); String from = "abc@yahoo.ca"; String subject = "Testing..."; msg.setFrom(new InternetAddress(from)); msg.setRecipient(MimeMessage.Recipien Source: http://pastebin.com/raw.php?i=4i5N8b85
↧