com.ecyrd.jspwiki.util
Class MailUtil
java.lang.Object
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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static final org.apache.log4j.Logger log
MailUtil
public MailUtil()
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 sentsubject
- Subject linecontent
- Content (plain text)
- Throws:
AddressException
MessagingException
NamingException
- See Also:
Message