nl.knowledgeplaza.util.net
Class MailUtils
java.lang.Object
nl.knowledgeplaza.util.net.MailUtils
public class MailUtils
- extends Object
- Version:
- $Revision: 1.2 $
|
Method Summary |
static void |
sendRawEmailViaSmtp(String mailhost,
int mailport,
String fromDomain,
String from,
String[] to,
String message)
The user is responsible for making sure the message is conform RFC821,
specifically making sure CRLF.CRLF is not part of the message:
Before sending a line of mail text the sender-SMTP checks
the first character of the line. |
static String |
wrapBase64ToMaxLineLength(String base64)
base 64 encoded string must be maximized to 76 characters per line |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SOURCECODE_VERSION
public static final String SOURCECODE_VERSION
- Standard variable for determining version of a class file.
- See Also:
- Constant Field Values
MailUtils
public MailUtils()
wrapBase64ToMaxLineLength
public static String wrapBase64ToMaxLineLength(String base64)
- base 64 encoded string must be maximized to 76 characters per line
sendRawEmailViaSmtp
public static void sendRawEmailViaSmtp(String mailhost,
int mailport,
String fromDomain,
String from,
String[] to,
String message)
throws IOException
- The user is responsible for making sure the message is conform RFC821,
specifically making sure CRLF.CRLF is not part of the message:
Before sending a line of mail text the sender-SMTP checks
the first character of the line. If it is a period, one
additional period is inserted at the beginning of the line.
- Throws:
IOException
Copyright © 2012 KnowledgePlaza. All Rights Reserved.