Package org.apache.commons.mail2.jakarta
Class SimpleEmail
java.lang.Object
org.apache.commons.mail2.jakarta.Email
org.apache.commons.mail2.jakarta.SimpleEmail
Sends simple Internet email messages without attachments.
- Since:
- 1.0
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.commons.mail2.jakarta.Email
addBcc, addBcc, addBcc, addBcc, addCc, addCc, addCc, addCc, addHeader, addReplyTo, addReplyTo, addReplyTo, addTo, addTo, addTo, addTo, buildMimeMessage, createMimeMessage, getAuthenticator, getBccAddresses, getBounceAddress, getCcAddresses, getCharsetName, getContent, getContentType, getEmailBody, getFromAddress, getHeader, getHeaders, getHostName, getMailSession, getMessage, getMimeMessage, getPopHost, getPopPassword, getPopUserName, getReplyToAddresses, getSentDate, getSmtpPort, getSocketConnectionTimeout, getSocketTimeout, getSslSmtpPort, getSubject, getToAddresses, isDebug, isPopBeforeSmtp, isSendPartial, isSSLCheckServerIdentity, isSSLOnConnect, isStartTLSEnabled, isStartTLSRequired, send, sendMimeMessage, setAuthentication, setAuthenticator, setBcc, setBounceAddress, setCc, setCharset, setContent, setContent, setContent, setContentType, setDebug, setFrom, setFrom, setFrom, setFromAddress, setHeaders, setHostName, setMailSession, setMailSessionFromJNDI, setMessage, setPopBeforeSmtp, setPopBeforeSmtp, setPopHost, setPopPassword, setPopUsername, setReplyTo, setSendPartial, setSentDate, setSmtpPort, setSocketConnectionTimeout, setSocketTimeout, setSSLCheckServerIdentity, setSSLOnConnect, setSslSmtpPort, setStartTLSEnabled, setStartTLSRequired, setSubject, setTo, toInternetAddressArray, updateContentType
-
Constructor Details
-
SimpleEmail
public SimpleEmail()Constructs a new instance.
-
-
Method Details
-
setMsg
Sets the content of the mail.- Specified by:
setMsg
in classEmail
- Parameters:
msg
- A String.- Returns:
- An Email.
- Throws:
EmailException
- see jakarta.mail.internet.MimeBodyPart for definitions- Since:
- 1.0
-