I am having trouble understanding how to set up the smtp property. I do not have
internet connection now. I wanted to use my Outlook or something. What do I do
to get Glassfish to generate emails so I can begin learning how to code my app to
send emails by gathering props and properties from my db?
//java mail inserted String smtpServer = "model.mail.SimpleSender"; String to = "firstname.lastname@example.org"; String from = "email@example.com"; String subject = "Hello Mail World subject"; String body = "Hello Mail World body"; SimpleSender ss = new SimpleSender(); ss.send(smtpServer, to, from, subject, body); //java mail inserted