HtmlEmail email = new HtmlEmail(); | HtmlEmail email = new HtmlEmail(); | ||||
email.setHostName("localhost"); | email.setHostName("localhost"); | ||||
email.setSmtpPort(9090); | email.setSmtpPort(9090); | ||||
email.setAuthentication()"sender@test.com", "password"); | |||||
email.setAuthentication("sender@test.com", "password"); | |||||
.... | .... | ||||
Or if you want to use Gmail: | Or if you want to use Gmail: |