|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.icegreen.greenmail.util.GreenMailUtil
public class GreenMailUtil
Method Summary | |
---|---|
static void |
copyStream(InputStream src,
OutputStream dest)
Writes the content of an input stream to an output stream |
static String |
getAddressList(Address[] addresses)
|
static String |
getBody(Part msg)
|
static byte[] |
getBodyAsBytes(Part msg)
|
static byte[] |
getHeaderAsBytes(Part part)
|
static String |
getHeaders(Part msg)
|
static int |
getLineCount(String str)
|
static Session |
getSession(ServerSetup setup)
|
static String |
getWholeMessage(Part msg)
|
static boolean |
hasNonTextAttachments(Part m)
|
static GreenMailUtil |
instance()
|
static MimeMessage |
newMimeMessage(InputStream inputStream)
Convenience method which creates a new MimeMessage from an input stream |
static MimeMessage |
newMimeMessage(String mailString)
Convenience method which creates a new MimeMessage from a string |
static String |
random()
Generates a random generated password consisting of letters and digits with a length variable between 5 and 8 characters long. |
static String |
random(int nbrOfLetters)
|
static void |
sendAttachmentEmail(String to,
String from,
String subject,
String msg,
byte[] attachment,
String contentType,
String filename,
String description,
ServerSetup setup)
|
static void |
sendTextEmail(String to,
String from,
String subject,
String msg,
ServerSetup setup)
|
static void |
sendTextEmailSecureTest(String to,
String from,
String subject,
String msg)
|
static void |
sendTextEmailTest(String to,
String from,
String subject,
String msg)
|
static String |
toString(Part msg)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static GreenMailUtil instance()
public static void copyStream(InputStream src, OutputStream dest) throws IOException
IOException
public static MimeMessage newMimeMessage(InputStream inputStream)
MimeMessage
from an input stream
public static MimeMessage newMimeMessage(String mailString) throws MessagingException
MimeMessage
from a string
MessagingException
public static boolean hasNonTextAttachments(Part m)
public static int getLineCount(String str)
public static String getBody(Part msg)
public static String getHeaders(Part msg)
public static String getWholeMessage(Part msg)
public static byte[] getBodyAsBytes(Part msg)
public static byte[] getHeaderAsBytes(Part part)
public static String toString(Part msg)
getWholeMessage(javax.mail.Part)
}public static String random()
public static String random(int nbrOfLetters)
public static void sendTextEmailTest(String to, String from, String subject, String msg)
public static void sendTextEmailSecureTest(String to, String from, String subject, String msg)
public static String getAddressList(Address[] addresses)
public static void sendTextEmail(String to, String from, String subject, String msg, ServerSetup setup)
public static Session getSession(ServerSetup setup)
public static void sendAttachmentEmail(String to, String from, String subject, String msg, byte[] attachment, String contentType, String filename, String description, ServerSetup setup) throws MessagingException, IOException
MessagingException
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |