com.ecyrd.jspwiki.util
Class MailUtil

java.lang.Object
  extended by com.ecyrd.jspwiki.util.MailUtil

public class MailUtil
extends Object

Contains utilities for emailing.

Author:
Dan Frankowski

Field Summary
protected static org.apache.log4j.Logger log
           
 
Constructor Summary
MailUtil()
           
 
Method Summary
static void sendMessage(Properties props, String to, String subject, String content)
          Send an email message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.apache.log4j.Logger log
Constructor Detail

MailUtil

public MailUtil()
Method Detail

sendMessage

public static void sendMessage(Properties props,
                               String to,
                               String subject,
                               String content)
                        throws AddressException,
                               MessagingException,
                               NamingException
Send an email message. See Tomcat 5.0 docs, Tomcat 5.5 docs, or Sun docs for a description of using the JavaMail API.

Parameters:
to - Email address from which the message is sent
subject - Subject line
content - Content (plain text)
Throws:
AddressException
MessagingException
NamingException
See Also:
Message