- setFrom
Set the FROM field of the email to use the specified address, personal name, and
charset encoding fo
- setSubject
Sets the email subject. Replaces end-of-line characters with spaces.
- addTo
Add a list of TO recipients to the email. The email addresses will also be used
as the personal name
- setHostName
Set the hostname of the outgoing mail server.
- send
Sends the email. Internally we build a MimeMessage which is afterwards sent to
the SMTP server.
- setSmtpPort
Set the non-SSL port number of the outgoing mail server.
- setSSLOnConnect
Sets whether SSL/TLS encryption should be enabled for the SMTP transport upon
connection (SMTPS/POPS
- setMsg
Define the content of the mail. It should be overridden by the subclasses.
- setAuthentication
Sets the userName and password if authentication is needed. If this method is
not used, no authentic
- setStartTLSEnabled
Set or disable the STARTTLS encryption.
- setAuthenticator
Sets the Authenticator to be used when authentication is requested from the mail
server. This method
- setCharset
Set the charset of the message. Please note that you should set the charset
before adding the messag