Sending email with java Apache Commons Mail through Lotus Notes
问题 I'm having trouble with my e-mail configuration for sending e-mails using lotus notes in a java program. I know this is pretty much straight forward but i guess i'm missing something. My code is as follows; import java.util.logging.Level; import java.util.logging.Logger; import org.apache.commons.mail.EmailException; import org.apache.commons.mail.SimpleEmail; public class MailClass { public void SendMail() { SimpleEmail email = new SimpleEmail(); try { email.setHostName("mail.smtp.host");