Skip to content

Instantly share code, notes, and snippets.

View eduardocs25's full-sized avatar

Max Hoyos eduardocs25

  • Baja California, Mexico
View GitHub Profile
String name = req.getParameter("name");
String email = req.getParameter("email");
String message = req.getParameter("message");
// Create Mail message
Properties props = new Properties();
Session session = Session.getDefaultInstance(props, null);
Message msg = new MimeMessage(session);
msg.setFrom(new InternetAddress("[email protected]",
"Acme Support Team"));