Uses of Class
org.miaixz.bus.extra.mail.Mail
Packages that use Mail
Package
Description
Provides a wrapper for email operations, based on the Jakarta Mail library.
-
Uses of Mail in org.miaixz.bus.extra.mail
Methods in org.miaixz.bus.extra.mail that return MailModifier and TypeMethodDescriptionMail.addAttachments(jakarta.activation.DataSource... attachments) Adds attachments to the email, represented byDataSourceobjects.Adds file attachments to the email.Adds an embedded image from aFileto the email.Mail.addImage(String cid, InputStream imageStream) Adds an embedded image to the email, referenced by a CID in the HTML body.Mail.addImage(String cid, InputStream imageStream, String contentType) Adds an embedded image to the email with a specified content type.static MailMail.of()Creates a newMailinstance using the global mail account configuration.static MailMail.of(MailAccount mailAccount) Creates a newMailinstance with the specified mail account.Sets multiple blind carbon copy (BCC) recipient email addresses, overwriting any previously set BCC recipients.Sets multiple carbon copy (CC) recipient email addresses, overwriting any previously set CC recipients.Mail.setCharset(Charset charset) Sets the character set encoding for the email.Mail.setContent(String content) Sets the body content of the email.Mail.setContent(String content, boolean isHtml) Sets both the body content and the content type (HTML or plain text).Mail.setDebugOutput(PrintStream debugOutput) Sets the debug output stream for logging mail sending details.Mail.setHtml(boolean isHtml) Sets whether the email content is in HTML format.Sets multiple 'Reply-To' email addresses, overwriting any previously set reply-to addresses.Sets the subject of the email.Sets multiple recipient email addresses, overwriting any previously set recipients.Mail.setUseGlobalSession(boolean isUseGlobalSession) Sets whether to use a global session for sending mail.Sets the recipient email addresses.