nl.knowledgeplaza.util.net
Class MailUtils

java.lang.Object
  extended by nl.knowledgeplaza.util.net.MailUtils

public class MailUtils
extends java.lang.Object

Version:
$Revision: 1.2 $

Field Summary
static java.lang.String SOURCECODE_VERSION
          Standard variable for determining version of a class file.
 
Constructor Summary
MailUtils()
           
 
Method Summary
static void sendRawEmailViaSmtp(java.lang.String mailhost, int mailport, java.lang.String fromDomain, java.lang.String from, java.lang.String[] to, java.lang.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 java.lang.String wrapBase64ToMaxLineLength(java.lang.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
 

Field Detail

SOURCECODE_VERSION

public static final java.lang.String SOURCECODE_VERSION
Standard variable for determining version of a class file.

See Also:
Constant Field Values
Constructor Detail

MailUtils

public MailUtils()
Method Detail

wrapBase64ToMaxLineLength

public static java.lang.String wrapBase64ToMaxLineLength(java.lang.String base64)
base 64 encoded string must be maximized to 76 characters per line


sendRawEmailViaSmtp

public static void sendRawEmailViaSmtp(java.lang.String mailhost,
                                       int mailport,
                                       java.lang.String fromDomain,
                                       java.lang.String from,
                                       java.lang.String[] to,
                                       java.lang.String message)
                                throws java.io.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:
java.io.IOException


Copyright © 2010. All Rights Reserved.