This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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")); |