public class EmailKit extends Object
Constructor and Description |
---|
EmailKit() |
Modifier and Type | Method and Description |
---|---|
static javax.mail.internet.MimeMessage |
findMessageAddressedTo(String expectedAddressString,
javax.mail.internet.MimeMessage[] messages)
Look through the passed messages for one addressed to the passed address.
|
static String |
getBody(javax.mail.Part message) |
public static javax.mail.internet.MimeMessage findMessageAddressedTo(String expectedAddressString, javax.mail.internet.MimeMessage[] messages) throws javax.mail.MessagingException
expectedAddressString
- the string representation of the e-mail address to look for.messages
- the messages to look through.javax.mail.MessagingException
- if an error occurs while parsing the messages or addresses.public static String getBody(javax.mail.Part message)
message
- the messageCopyright © 2002-2019 Atlassian. All Rights Reserved.