Enviar Correo con JAVA
pom.xml <dependency> <groupId>com.sun.mail</groupId> <artifactId>javax.mail</artifactId> <version>1.6.2</version> </dependency> Clase java private static void enviarConOutlook(Correo correo) throws IOException { try { Properties props = new Properties(); props.put("mail.smtp.host", "smtp-mail.outlook.com"); props.put("mail.smtp.port", "587"); props.put("mail.smtp.starttls.enable", "true"); props.put("mail.smtp.auth", "true"); Session session = Session.getDefaultInstance(props, new javax.mail.Authenticator() { protected PasswordAuthentication getPasswordAuthentication() { return new PasswordAuthentication(correo.getCorreoRemitente(), correo.getClaveRemitente()); } }); Message msg = new MimeMessage(session); msg.setFrom(new InternetAddress(correo.getCorreoRemitente(), "NoReply...