Uses of Class
com.jbstrap.core.mail.Email
-
Uses of Email in com.jbstrap.core.mail
Modifier and TypeMethodDescriptionEmail.addAttachment
(File... files) Adds the file(s) to the EmailEmail.addAttachment
(String filename, File file) Adds the specified file to the attachments.Email.addAttachment
(Map<String, File> files) Adds the specified file to the attachments.Email.addBodyPart
(String contentId, File part) Email.addBodyPart
(String contentId, InputStream part, String mimeType) Email.copy()
Copy the Email object to the new Email instanceEmail.deleteAllBodyPart()
Email.deleteBodyPart
(String contentId) static Email
EmailAPI.prepareEmail()
Creates a new emptyEmail
objectstatic Email
EmailAPI.prepareEmail
(boolean setFromResource) Creates a newEmail
object.Email.setAuth
(boolean auth) Sets the Email server authenticationEmail.setDebugEnabled
(boolean debugEnabled) Enables the Email server debug modeSets the Email server hostEmail.setMailBcc
(String... mailBcc) Sets the Email bcc addresseesEmail.setMailBcc
(List<String> mailBcc) Sets a list of the Email bcc addresseesEmail.setMailBody
(String mailBody) Sets the Email bodyEmail.setMailBodyText
(String mailBodyText) Sets the Email body text
If the email client can't display HTML, then this is the content that will be visible instead of themailBody
Sets the Email cc addresseesSets a list of the Email cc addresseesEmail.setMailFrom
(String mailFrom) Sets the Email sender's addressEmail.setMailFromDisplayName
(String mailFromDisplayName) Sets the mail sender's display nameEmail.setMailSubject
(String mailSubject) Sets the Email subjectSets the Email addresseesSets the Email addressees (using a list)Email.setPassword
(String password) Sets the Email server authentication passwordEmail.setPort
(int port) Sets the Email server portEmail.setReplyTo
(String... replyTo) Sets the Email reply to addresseesEmail.setReplyTo
(List<String> replyTo) Sets the Email reply to addresseesEmail.setSocketFactoryClass
(String socketFactoryClass) Sets the Email server socket factory classEmail.setSocketFactoryPort
(int socketFactoryPort) Sets the Email server socket factory portEmail.setSslEnable
(boolean sslEnable) Enables the Email server SSLEmail.setSslTrust
(String sslTrust) Sets the Email server SSL trustEmail.setStarttlsEnable
(boolean starttlsEnable) Enables the Email server start TLSEmail.setTransportProtocol
(String transportProtocol) Sets the Email server transport protocolEmail.setUserName
(String userName) Sets the Email server authentication username