Uses of Class
jakarta.mail.MessagingException
Packages that use MessagingException
Package
Description
The Jakarta Mail API
provides classes that model a mail system.
Classes specific to Internet mail systems.
Message search terms for the Jakarta Mail API.
-
Uses of MessagingException in jakarta.mail
Subclasses of MessagingException in jakarta.mailModifier and TypeClassDescriptionclassThis exception is thrown when the connect method on a Store or Transport object fails due to an authentication failure (e.g., bad user name or password).classThis exception is thrown when a method is invoked on a Messaging object and the Folder that owns that object has died due to some reason.classThis exception is thrown by Folder methods, when those methods are invoked on a non existent folder.classThe exception thrown when a write is attempted on a read-only attribute of any Messaging object.classThe exception thrown when an invalid method is invoked on an expunged Message.classThe exception thrown when a method is not supported by the implementationclassThis exception is thrown when Session attempts to instantiate a Provider that doesn't exist.classThis exception is thrown when an attempt is made to open a folder read-write access when the folder is marked read-only.classThis exception is thrown when the message cannot be sent.classThis exception is thrown when a method is invoked on a Messaging object and the Store that owns that object has died due to some reason.Methods in jakarta.mail that throw MessagingExceptionModifier and TypeMethodDescriptionvoidMultipart.addBodyPart(BodyPart part) Adds a Part to the multipart.voidMultipart.addBodyPart(BodyPart part, int index) Adds a BodyPart at positionindex.abstract voidAdd these addresses to the existing "From" attributevoidAdd this value to the existing values for this header_name.voidMessage.addRecipient(Message.RecipientType type, Address address) Add this recipient address to the existing ones of the given type.abstract voidMessage.addRecipients(Message.RecipientType type, Address[] addresses) Add these recipient addresses to the existing ones of the given type.abstract voidFolder.appendMessages(Message[] msgs) Append given Messages to this folder.voidFolder.close()Close this Folder and expunge deleted messages.abstract voidFolder.close(boolean expunge) Close this Folder.voidService.close()Close this service and terminate its connection.voidService.connect()A generic connect method that takes no parameters.voidSimilar to connect(host, user, password) except a specific port can be specified.voidConnect to the current host using the specified username and password.voidConnect to the specified address.voidFolder.copyMessages(Message[] msgs, Folder folder) Copy the specified Messages from this Folder into another Folder.abstract booleanFolder.create(int type) Create this folder on the Store.abstract booleanFolder.delete(boolean recurse) Delete this Folder.abstract booleanFolder.exists()Tests if this folder physically exists on the Store.abstract Message[]Folder.expunge()Expunge (permanently remove) messages marked DELETED.voidFolder.fetch(Message[] msgs, FetchProfile fp) Prefetch the items specified in the FetchProfile for the given Messages.Part.getAllHeaders()Return all the headers from this part as an Enumeration of Header objects.Address[]Message.getAllRecipients()Get all the recipient addresses for the message.Multipart.getBodyPart(int index) Get the specified Part.MultipartDataSource.getBodyPart(int index) Get the specified Part.Part.getContent()Return the content as a Java object.Part.getContentType()Returns the Content-Type of the content of this part.intMultipart.getCount()Return the number of enclosed BodyPart objects.Part.getDataHandler()Return a DataHandler for the content within this part.abstract FolderStore.getDefaultFolder()Returns a Folder object that represents the 'root' of the default namespace presented to the user by the Store.intFolder.getDeletedMessageCount()Get the number of deleted messages in this Folder.Part.getDescription()Return a description String for this part.Part.getDisposition()Return the disposition of this part.Part.getFileName()Get the filename associated with this part, if possible.abstract FlagsMessage.getFlags()Returns aFlagsobject containing the flags for this message.abstract FolderReturn the Folder object corresponding to the given name.Get a closed Folder object for the given URLName.abstract FolderReturn a closed Folder object, corresponding to the given URLName.abstract FolderReturn the Folder object corresponding to the given name.abstract Address[]Message.getFrom()Returns the "From" attribute.String[]Get all the headers for this header name.Part.getInputStream()Return an input stream for this part's "content".intPart.getLineCount()Return the number of lines in the content of this part.Part.getMatchingHeaders(String[] header_names) Return matching headers from this part as an Enumeration of Header objects.abstract MessageFolder.getMessage(int msgnum) Get the Message object corresponding to the given message number.UIDFolder.getMessageByUID(long uid) Get the Message corresponding to the given UID.abstract intFolder.getMessageCount()Get total number of messages in this Folder.Message[]Folder.getMessages()Get all Message objects from this Folder.Message[]Folder.getMessages(int[] msgnums) Get the Message objects for message numbers specified in the array.Message[]Folder.getMessages(int start, int end) Get the Message objects for message numbers ranging from start through end, both start and end inclusive.Message[]UIDFolder.getMessagesByUID(long[] uids) Get the Messages specified by the given array of UIDs.Message[]UIDFolder.getMessagesByUID(long start, long end) Get the Messages specified by the given range.intFolder.getNewMessageCount()Get the number of new messages in this Folder.Part.getNonMatchingHeaders(String[] header_names) Return non-matching headers from this envelope as an Enumeration of Header objects.abstract FolderFolder.getParent()Returns the parent folder of this folder.Folder[]Store.getPersonalNamespaces()Return a set of folders representing the personal namespaces for the current user.Quota[]Get the quotas for the named folder.abstract DateMessage.getReceivedDate()Get the date this message was received.abstract Address[]Message.getRecipients(Message.RecipientType type) Get all the recipient addresses of the given type.Address[]Message.getReplyTo()Get the addresses to which replies should be directed.abstract DateMessage.getSentDate()Get the date this message was sent.abstract charFolder.getSeparator()Return the delimiter character that separates this Folder's pathname from the names of immediate subfolders.Folder[]Store.getSharedNamespaces()Return a set of folders representing the shared namespaces.intPart.getSize()Return the size of the content of this part in bytes.abstract StringMessage.getSubject()Get the subject of this message.abstract intFolder.getType()Returns the type of this Folder, that is, whether this folder can hold messages or subfolders or both.longGet the UID for the specified message.longUIDFolder.getUIDNext()Returns the predicted UID that will be assigned to the next message that is appended to this folder.longUIDFolder.getUIDValidity()Returns the UIDValidity value associated with this folder.intFolder.getUnreadMessageCount()Get the total number of unread messages in this Folder.Folder.getURLName()Return a URLName representing this folder.Folder[]Store.getUserNamespaces(String user) Return a set of folders representing the namespaces foruser.abstract booleanFolder.hasNewMessages()Returns true if this Folder has new messages since the last time this indication was reset.booleanPart.isMimeType(String mimeType) Is this Part of the specified MIME type? This method compares only theprimaryTypeandsubType.booleanMessage.isSet(Flags.Flag flag) Check whether the flag specified in theflagargument is set in this message.Folder[]Folder.list()Convenience method that returns the list of folders under this Folder.abstract Folder[]Returns a list of Folders belonging to this Folder's namespace that match the specified pattern.Folder[]Folder.listSubscribed()Convenience method that returns the list of subscribed folders under this Folder.Folder[]Folder.listSubscribed(String pattern) Returns a list of subscribed Folders belonging to this Folder's namespace that match the specified pattern.booleanMessage.match(SearchTerm term) Apply the specified Search criterion to this message.abstract voidFolder.open(int mode) Open this Folder.protected booleanService.protocolConnect(String host, int port, String user, String password) The service implementation should override this method to perform the actual protocol-specific connection attempt.voidMultipart.removeBodyPart(int index) Remove the part at specified location (starting from 0).booleanMultipart.removeBodyPart(BodyPart part) Remove the specified part from the multipart message.voidPart.removeHeader(String header_name) Remove all headers with this name.abstract booleanRename this Folder.abstract MessageMessage.reply(boolean replyToAll) Get a new Message suitable for a reply to this message.abstract voidMessage.saveChanges()Save any changes made to this message into the message-store when the containing folder is closed, if the message is contained in a folder.Message[]Folder.search(SearchTerm term) Search this Folder for messages matching the specified search criterion.Message[]Folder.search(SearchTerm term, Message[] msgs) Search the given array of messages for those that match the specified search criterion.static voidSend a message.static voidSend the message to the specified addresses, ignoring any recipients specified in the message itself.static voidSend the message to the specified addresses, ignoring any recipients specified in the message itself.static voidSend a message.abstract voidTransport.sendMessage(Message msg, Address[] addresses) Send the Message to the specified list of addresses.voidPart.setContent(Multipart mp) This method sets the given Multipart object as this message's content.voidPart.setContent(Object obj, String type) A convenience method for setting this part's content.voidPart.setDataHandler(DataHandler dh) This method provides the mechanism to set this part's content.voidPart.setDescription(String description) Set a description String for this part.voidPart.setDisposition(String disposition) Set the disposition of this part.voidPart.setFileName(String filename) Set the filename associated with this part, if possible.voidMessage.setFlag(Flags.Flag flag, boolean set) Set the specified flag on this message to the specified value.voidSet the specified flags on the messages whose message numbers are in the array.voidSet the specified flags on the messages numbered from start through end, both start and end inclusive.voidSet the specified flags on the messages specified in the array.abstract voidSet the specified flags on this message to the specified value.abstract voidMessage.setFrom()Set the "From" attribute in this Message.abstract voidSet the "From" attribute in this Message.voidSet the value for this header_name.protected voidMultipart.setMultipartDataSource(MultipartDataSource mp) Setup this Multipart object from the given MultipartDataSource.voidSet the quotas for the quota root specified in the quota argument.voidMessage.setRecipient(Message.RecipientType type, Address address) Set the recipient address.abstract voidMessage.setRecipients(Message.RecipientType type, Address[] addresses) Set the recipient addresses.voidMessage.setReplyTo(Address[] addresses) Set the addresses to which replies should be directed.abstract voidMessage.setSentDate(Date date) Set the sent date of this message.abstract voidMessage.setSubject(String subject) Set the subject of this message.voidFolder.setSubscribed(boolean subscribe) Subscribe or unsubscribe this Folder.voidA convenience method that sets the given String as this part's content with a MIME type of "text/plain".abstract voidMultipart.writeTo(OutputStream os) Output an appropriately encoded bytestream to the given OutputStream.voidPart.writeTo(OutputStream os) Output a bytestream for this Part. -
Uses of MessagingException in jakarta.mail.internet
Subclasses of MessagingException in jakarta.mail.internetModifier and TypeClassDescriptionclassThe exception thrown when a wrongly formatted address is encountered.classThe exception thrown due to an error in parsing RFC822 or MIME headers, including multipart bodies.Methods in jakarta.mail.internet that throw MessagingExceptionModifier and TypeMethodDescriptionvoidMimeMultipart.addBodyPart(BodyPart part) Adds a Part to the multipart.voidMimeMultipart.addBodyPart(BodyPart part, int index) Adds a BodyPart at positionindex.voidAdd the specified addresses to the existing "From" field.voidAdd this value to the existing values for this header_name.voidAdd this value to the existing values for this header_name.voidMimeBodyPart.addHeaderLine(String line) Add a header line to this body partvoidMimeMessage.addHeaderLine(String line) Add a raw RFC 822 header-line.voidMimePart.addHeaderLine(String line) Add a raw RFC822 header-line.voidMimeMessage.addRecipients(Message.RecipientType type, Address[] addresses) Add the given addresses to the specified recipient type.voidMimeMessage.addRecipients(Message.RecipientType type, String addresses) Add the given addresses to the specified recipient type.voidMimeBodyPart.attachFile(File file) Use the specified file to provide the data for this part.voidMimeBodyPart.attachFile(File file, String contentType, String encoding) Use the specified file with the specified Content-Type and Content-Transfer-Encoding to provide the data for this part.voidMimeBodyPart.attachFile(String file) Use the specified file to provide the data for this part.voidMimeBodyPart.attachFile(String file, String contentType, String encoding) Use the specified file with the specified Content-Type and Content-Transfer-Encoding to provide the data for this part.protected InternetHeadersMimeMessage.createInternetHeaders(InputStream is) Create and return an InternetHeaders object that loads the headers from the given InputStream.protected InternetHeadersMimeMultipart.createInternetHeaders(InputStream is) Create and return an InternetHeaders object that loads the headers from the given InputStream.protected MimeBodyPartMimeMultipart.createMimeBodyPart(InternetHeaders headers, byte[] content) Create and return a MimeBodyPart object to represent a body part parsed from the InputStream.protected MimeBodyPartMimeMultipart.createMimeBodyPart(InputStream is) Create and return a MimeBodyPart object to represent a body part parsed from the InputStream.protected MimeMessageMimeMessage.createMimeMessage(Session session) Create and return a MimeMessage object.static InputStreamMimeUtility.decode(InputStream is, String encoding) Decode the given input stream.static OutputStreamMimeUtility.encode(OutputStream os, String encoding) Wrap an encoder around the given output stream.static OutputStreamMimeUtility.encode(OutputStream os, String encoding, String filename) Wrap an encoder around the given output stream.MimeBodyPart.getAllHeaderLines()Get all header lines as an Enumeration of Strings.MimeMessage.getAllHeaderLines()Get all header lines as an Enumeration of Strings.MimePart.getAllHeaderLines()Get all header lines as an Enumeration of Strings.MimeBodyPart.getAllHeaders()Return all the headers from this Message as an Enumeration of Header objects.MimeMessage.getAllHeaders()Return all the headers from this Message as an enumeration of Header objects.Address[]MimeMessage.getAllRecipients()Get all the recipient addresses for the message.MimeMultipart.getBodyPart(int index) Get the specified BodyPart.MimeMultipart.getBodyPart(String CID) Get the MimeBodyPart referred to by the given ContentID (CID).MimeBodyPart.getContent()Return the content as a Java object.MimeMessage.getContent()Return the content as a Java object.MimeBodyPart.getContentID()Returns the value of the "Content-ID" header field.MimeMessage.getContentID()Returns the value of the "Content-ID" header field.MimePart.getContentID()Get the Content-ID of this part.String[]MimeBodyPart.getContentLanguage()Get the languages specified in the Content-Language header of this MimePart.String[]MimeMessage.getContentLanguage()Get the languages specified in the "Content-Language" header field of this message.String[]MimePart.getContentLanguage()Get the language tags specified in the Content-Language header of this MimePart.MimeBodyPart.getContentMD5()Return the value of the "Content-MD5" header field.MimeMessage.getContentMD5()Return the value of the "Content-MD5" header field.MimePart.getContentMD5()Get the Content-MD5 digest of this part.protected InputStreamMimeBodyPart.getContentStream()Produce the raw bytes of the content.protected InputStreamMimeMessage.getContentStream()Produce the raw bytes of the content.MimeBodyPart.getContentType()Returns the value of the RFC 822 "Content-Type" header field.MimeMessage.getContentType()Returns the value of the RFC 822 "Content-Type" header field.intMimeMultipart.getCount()Return the number of enclosed BodyPart objects.MimeBodyPart.getDataHandler()Return a DataHandler for this body part's content.MimeMessage.getDataHandler()Return a DataHandler for this Message's content.MimeBodyPart.getDescription()Returns the "Content-Description" header field of this body part.MimeMessage.getDescription()Returns the "Content-Description" header field of this Message.MimeBodyPart.getDisposition()Returns the disposition from the "Content-Disposition" header field.MimeMessage.getDisposition()Returns the disposition from the "Content-Disposition" header field.MimeBodyPart.getEncoding()Returns the content transfer encoding from the "Content-Transfer-Encoding" header field.MimeMessage.getEncoding()Returns the content transfer encoding from the "Content-Transfer-Encoding" header field.MimePart.getEncoding()Get the transfer encoding of this part.PreencodedMimeBodyPart.getEncoding()Returns the content transfer encoding specified when this object was created.MimeBodyPart.getFileName()Get the filename associated with this body part.MimeMessage.getFileName()Get the filename associated with this Message.MimeMessage.getFlags()Return aFlagsobject containing the flags for this message.Address[]MimeMessage.getFrom()Returns the value of the RFC 822 "From" header fields.String[]Get all the headers for this header_name.Get all the headers for this header name, returned as a single String, with headers separated by the delimiter.String[]Get all the headers for this header_name.Get all the headers for this header name, returned as a single String, with headers separated by the delimiter.Get the values of all header fields available for this header, returned as a single String, with the values separated by the delimiter.MimeBodyPart.getInputStream()Return a decoded input stream for this body part's "content".MimeMessage.getInputStream()Return a decoded input stream for this Message's "content".intMimeBodyPart.getLineCount()Return the number of lines for the content of this Part.intMimeMessage.getLineCount()Return the number of lines for the content of this message.MimeBodyPart.getMatchingHeaderLines(String[] names) Get matching header lines as an Enumeration of Strings.MimeMessage.getMatchingHeaderLines(String[] names) Get matching header lines as an Enumeration of Strings.MimePart.getMatchingHeaderLines(String[] names) Get matching header lines as an Enumeration of Strings.MimeBodyPart.getMatchingHeaders(String[] names) Return matching headers from this Message as an Enumeration of Header objects.MimeMessage.getMatchingHeaders(String[] names) Return matching headers from this Message as an Enumeration of Header objects.MimeMessage.getMessageID()Returns the value of the "Message-ID" header field.MimeBodyPart.getNonMatchingHeaderLines(String[] names) Get non-matching header lines as an Enumeration of Strings.MimeMessage.getNonMatchingHeaderLines(String[] names) Get non-matching header lines as an Enumeration of Strings.MimePart.getNonMatchingHeaderLines(String[] names) Get non-matching header lines as an Enumeration of Strings.MimeBodyPart.getNonMatchingHeaders(String[] names) Return non-matching headers from this Message as an Enumeration of Header objects.MimeMessage.getNonMatchingHeaders(String[] names) Return non-matching headers from this Message as an Enumeration of Header objects.MimeMultipart.getPreamble()Get the preamble text, if any, that appears before the first body part of this multipart.MimeBodyPart.getRawInputStream()Return an InputStream to the raw data with any Content-Transfer-Encoding intact.MimeMessage.getRawInputStream()Return an InputStream to the raw data with any Content-Transfer-Encoding intact.MimeMessage.getReceivedDate()Returns the Date on this message was received.Address[]MimeMessage.getRecipients(Message.RecipientType type) Returns the recepients specified by the type.Address[]MimeMessage.getReplyTo()Return the value of the RFC 822 "Reply-To" header field.MimeMessage.getSender()Returns the value of the RFC 822 "Sender" header field.MimeMessage.getSentDate()Returns the value of the RFC 822 "Date" field.intMimeBodyPart.getSize()Return the size of the content of this body part in bytes.intMimeMessage.getSize()Return the size of the content of this message in bytes.MimeMessage.getSubject()Returns the value of the "Subject" header field.booleanMimeMultipart.isComplete()Return true if the final boundary line for this multipart was seen.booleanMimeBodyPart.isMimeType(String mimeType) Is this Part of the specified MIME type? This method compares only theprimaryTypeandsubType.booleanMimeMessage.isMimeType(String mimeType) Is this Part of the specified MIME type? This method compares only theprimaryTypeandsubType.booleanMimeMessage.isSet(Flags.Flag flag) Check whether the flag specified in theflagargument is set in this message.voidInternetHeaders.load(InputStream is) Read and parse the given RFC822 message stream till the blank line separating the header from the body.voidInternetHeaders.load(InputStream is, boolean allowutf8) Read and parse the given RFC822 message stream till the blank line separating the header from the body.protected voidMimeMessage.parse(InputStream is) Parse the InputStream setting theheadersandcontentfields appropriately.protected voidMimeMultipart.parse()Parse the InputStream from our DataSource, constructing the appropriate MimeBodyParts.voidMimeMultipart.removeBodyPart(int index) Remove the part at specified location (starting from 0).booleanMimeMultipart.removeBodyPart(BodyPart part) Remove the specified part from the multipart message.voidMimeBodyPart.removeHeader(String name) Remove all headers with this name.voidMimeMessage.removeHeader(String name) Remove all headers with this name.MimeMessage.reply(boolean replyToAll) Get a new Message suitable for a reply to this message.MimeMessage.reply(boolean replyToAll, boolean setAnswered) Get a new Message suitable for a reply to this message.voidMimeMessage.saveChanges()Updates the appropriate header fields of this message to be consistent with the message's contents.voidSave the contents of this part in the specified file.voidSave the contents of this part in the specified file.voidMimeBodyPart.setContent(Multipart mp) This method sets the body part's content to a Multipart object.voidMimeBodyPart.setContent(Object o, String type) A convenience method for setting this body part's content.voidMimeMessage.setContent(Multipart mp) This method sets the Message's content to a Multipart object.voidMimeMessage.setContent(Object o, String type) A convenience method for setting this Message's content.voidMimeBodyPart.setContentID(String cid) Set the "Content-ID" header field of this body part.voidMimeMessage.setContentID(String cid) Set the "Content-ID" header field of this Message.voidMimeBodyPart.setContentLanguage(String[] languages) Set the Content-Language header of this MimePart.voidMimeMessage.setContentLanguage(String[] languages) Set the "Content-Language" header of this MimePart.voidMimePart.setContentLanguage(String[] languages) Set the Content-Language header of this MimePart.voidMimeBodyPart.setContentMD5(String md5) Set the "Content-MD5" header field of this body part.voidMimeMessage.setContentMD5(String md5) Set the "Content-MD5" header field of this Message.voidMimePart.setContentMD5(String md5) Set the Content-MD5 of this part.voidMimeBodyPart.setDataHandler(DataHandler dh) This method provides the mechanism to set this body part's content.voidMimeMessage.setDataHandler(DataHandler dh) This method provides the mechanism to set this part's content.voidMimeBodyPart.setDescription(String description) Set the "Content-Description" header field for this body part.voidMimeBodyPart.setDescription(String description, String charset) Set the "Content-Description" header field for this body part.voidMimeMessage.setDescription(String description) Set the "Content-Description" header field for this Message.voidMimeMessage.setDescription(String description, String charset) Set the "Content-Description" header field for this Message.voidMimeBodyPart.setDisposition(String disposition) Set the disposition in the "Content-Disposition" header field of this body part.voidMimeMessage.setDisposition(String disposition) Set the disposition in the "Content-Disposition" header field of this body part.voidMimeBodyPart.setFileName(String filename) Set the filename associated with this body part, if possible.voidMimeMessage.setFileName(String filename) Set the filename associated with this part, if possible.voidSet the flags for this message.voidMimeMessage.setFrom()Set the RFC 822 "From" header field using the value of theInternetAddress.getLocalAddressmethod.voidSet the RFC 822 "From" header field.voidSet the RFC 822 "From" header field.voidSet the value for this header_name.voidSet the value for this header_name.voidMimeMultipart.setPreamble(String preamble) Set the preamble text to be included before the first body part.voidMimeMessage.setRecipients(Message.RecipientType type, Address[] addresses) Set the specified recipient type to the given addresses.voidMimeMessage.setRecipients(Message.RecipientType type, String addresses) Set the specified recipient type to the given addresses.voidMimeMessage.setReplyTo(Address[] addresses) Set the RFC 822 "Reply-To" header field.voidSet the RFC 822 "Sender" header field.voidMimeMessage.setSentDate(Date d) Set the RFC 822 "Date" header field.voidMimeMessage.setSubject(String subject) Set the "Subject" header field.voidMimeMessage.setSubject(String subject, String charset) Set the "Subject" header field.voidMimeMultipart.setSubType(String subtype) Set the subtype.voidConvenience method that sets the given String as this part's content, with a MIME type of "text/plain".voidConvenience method that sets the given String as this part's content, with a MIME type of "text/plain" and the specified charset.voidConvenience method that sets the given String as this part's content, with a primary MIME type of "text" and the specified MIME subtype.voidConvenience method that sets the given String as this part's content, with a MIME type of "text/plain".voidConvenience method that sets the given String as this part's content, with a MIME type of "text/plain" and the specified charset.voidConvenience method that sets the given String as this part's content, with a primary MIME type of "text" and the specified MIME subtype.voidConvenience method that sets the given String as this part's content, with a MIME type of "text/plain".voidConvenience method that sets the given String as this part's content, with a MIME type of "text/plain" and the specified charset.voidConvenience method that sets the given String as this part's content, with a primary MIME type of "text" and the specified MIME subtype.protected voidMimeBodyPart.updateHeaders()Examine the content of this body part and update the appropriate MIME headers.protected voidMimeMessage.updateHeaders()Called by thesaveChangesmethod to actually update the MIME headers.protected voidMimeMultipart.updateHeaders()Update headers.protected voidPreencodedMimeBodyPart.updateHeaders()Force theContent-Transfer-Encodingheader to use the encoding that was specified when this object was created.protected voidMimeMessage.updateMessageID()Update the Message-ID header.voidMimeBodyPart.writeTo(OutputStream os) Output the body part as an RFC 822 format stream.voidMimeMessage.writeTo(OutputStream os) Output the message as an RFC 822 format stream.voidMimeMessage.writeTo(OutputStream os, String[] ignoreList) Output the message as an RFC 822 format stream, without specified headers.voidMimeMultipart.writeTo(OutputStream os) Iterates through all the parts and outputs each MIME part separated by a boundary.voidPreencodedMimeBodyPart.writeTo(OutputStream os) Output the body part as an RFC 822 format stream.Constructors in jakarta.mail.internet that throw MessagingExceptionModifierConstructorDescriptionRead and parse the given RFC822 message stream till the blank line separating the header from the body.InternetHeaders(InputStream is, boolean allowutf8) Read and parse the given RFC822 message stream till the blank line separating the header from the body.MimeBodyPart(InternetHeaders headers, byte[] content) Constructs a MimeBodyPart using the given header and content bytes.Constructs a MimeBodyPart by reading and parsing the data from the specified input stream.protectedMimeMessage(Folder folder, InternetHeaders headers, byte[] content, int msgnum) Constructs a MimeMessage from the given InternetHeaders object and content.protectedMimeMessage(Folder folder, InputStream is, int msgnum) Constructs a MimeMessage by reading and parsing the data from the specified MIME InputStream.MimeMessage(MimeMessage source) Constructs a new MimeMessage with content initialized from thesourceMimeMessage.MimeMessage(Session session, InputStream is) Constructs a MimeMessage by reading and parsing the data from the specified MIME InputStream.Constructs a MimeMultipart object and its bodyparts from the given DataSource.MimeMultipart(BodyPart... parts) Construct a MimeMultipart object of the default "mixed" subtype, and with the given body parts.MimeMultipart(String subtype, BodyPart... parts) Construct a MimeMultipart object of the given subtype and with the given body parts. -
Uses of MessagingException in jakarta.mail.search
Subclasses of MessagingException in jakarta.mail.searchModifier and TypeClassDescriptionclassThe exception thrown when a Search expression could not be handled.