Uses of Class
org.miaixz.bus.extra.mail.SMTPMessage
Packages that use SMTPMessage
Package
Description
Provides a wrapper for email operations, based on the Jakarta Mail library.
-
Uses of SMTPMessage in org.miaixz.bus.extra.mail
Methods in org.miaixz.bus.extra.mail that return SMTPMessageModifier and TypeMethodDescriptionSMTPMessage.addAttachments(jakarta.activation.DataSource... attachments) Adds attachments to the email, represented byDataSourceobjects.SMTPMessage.addBodyPart(jakarta.mail.BodyPart bodyPart) Adds aBodyPartto the email's multipart content.SMTPMessage.addBodyPart(jakarta.mail.BodyPart bodyPart, int index) Adds aBodyPartto the email's multipart content at a specific index.Adds file attachments to the email.Adds an embedded image from a file to the email.SMTPMessage.addImage(String cid, InputStream imageStream) Adds an embedded image to the email.SMTPMessage.addImage(String cid, InputStream imageStream, String contentType) Adds an embedded image to the email with a specified content type.Mail.build()Builds theMimeMessageobject from the current configuration.static SMTPMessageSMTPMessage.of(MailAccount mailAccount, boolean useGlobalSession, PrintStream debugOutput) Creates a newSMTPMessageinstance.Sets the blind carbon copy (BCC) recipient email addresses.Sets the carbon copy (CC) recipient email addresses.SMTPMessage.setContent(String content, boolean isHtml) Sets the email body content.SMTPMessage.setRecipients(jakarta.mail.Message.RecipientType type, String... addresses) Sets the recipients for a given recipient type (TO, CC, BCC).Sets the 'Reply-To' email addresses.Sets the email subject.Sets the recipient email addresses.