org.apache.turbine.util.mail
Class SimpleEmail

java.lang.Object
  |
  +--org.apache.turbine.util.mail.Email
        |
        +--org.apache.turbine.util.mail.SimpleEmail

public class SimpleEmail
extends Email

This class is used to send simple internet email messages without attachments.

Version:
$Id: SimpleEmail.java,v 1.3 2002/07/11 16:53:20 mpoeschl Exp $
Author:
Jon S. Stevens, Frank Y. Kim, Brett McLaughlin, Regis Koenig

Fields inherited from class org.apache.turbine.util.mail.Email
ATTACHMENTS, charset, CONTENT_TYPE, EMAIL_BODY, EMAIL_SUBJECT, FILE_SERVER, ISO_8859_1, KOI8_R, MAIL_HOST, MAIL_SERVER, MAIL_SMTP_FROM, MAIL_TRANSPORT_PROTOCOL, message, RECEIVER_EMAIL, RECEIVER_NAME, SENDER_EMAIL, SENDER_NAME, SMTP, TEXT_HTML, TEXT_PLAIN, US_ASCII
 
Constructor Summary
SimpleEmail()
          Default constructor.
SimpleEmail(org.apache.torque.util.Criteria criteria)
          Constructor used to initialize attributes.
 
Method Summary
protected  void initCriteria(org.apache.torque.util.Criteria criteria)
          Uses the criteria to set the fields.
 Email setMsg(java.lang.String msg)
          Set the content of the mail
 
Methods inherited from class org.apache.turbine.util.mail.Email
addBcc, addCc, addReplyTo, addTo, init, initialize, send, setCharset, setFrom, setSentDate, setSubject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleEmail

public SimpleEmail()
            throws javax.mail.MessagingException
Default constructor.
Throws:
MessagingException. -  

SimpleEmail

public SimpleEmail(org.apache.torque.util.Criteria criteria)
            throws javax.mail.MessagingException
Constructor used to initialize attributes. To create a simple email you need to pass a Criteria object into the SimpleEmail constructor which contains: Deprecated, since Criteria is deprecated in mail API.
Parameters:
criteria - A Criteria.
Throws:
MessagingException. -  
Method Detail

initCriteria

protected void initCriteria(org.apache.torque.util.Criteria criteria)
                     throws javax.mail.MessagingException
Uses the criteria to set the fields. Deprecated, since the Criteria is deprecated.
Overrides:
initCriteria in class Email
Parameters:
criteria - A Criteria.
Throws:
MessagingException. -  

setMsg

public Email setMsg(java.lang.String msg)
             throws javax.mail.MessagingException
Set the content of the mail
Overrides:
setMsg in class Email
Parameters:
msg - A String.
Returns:
An Email.
Throws:
MessagingException. -  


Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.