org.apache.turbine.util.mail
Class SimpleEmail

java.lang.Object
  extended byorg.apache.turbine.util.mail.Email
      extended byorg.apache.turbine.util.mail.SimpleEmail

Deprecated. Use org.apache.commons.mail.SimpleEmail instead.

public class SimpleEmail
extends Email

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

Version:
$Id: SimpleEmail.java 264148 2005-08-29 14:21:04Z henning $
Author:
Jon S. Stevens, Frank Y. Kim, Brett McLaughlin, Regis Koenig

Field Summary
 
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()
          Deprecated. Default constructor.
SimpleEmail(org.apache.torque.util.Criteria criteria)
          Deprecated. Constructor used to initialize attributes.
 
Method Summary
protected  void initCriteria(org.apache.torque.util.Criteria criteria)
          Deprecated. Uses the criteria to set the fields.
 Email setMsg(java.lang.String msg)
          Deprecated. 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
Deprecated. 
Default constructor.

Throws:
MessagingException.
javax.mail.MessagingException

SimpleEmail

public SimpleEmail(org.apache.torque.util.Criteria criteria)
            throws javax.mail.MessagingException
Deprecated. 
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.
javax.mail.MessagingException
Method Detail

initCriteria

protected void initCriteria(org.apache.torque.util.Criteria criteria)
                     throws javax.mail.MessagingException
Deprecated. 
Uses the criteria to set the fields. Deprecated, since the Criteria is deprecated.

Overrides:
initCriteria in class Email
Parameters:
criteria - A Criteria.
Throws:
MessagingException.
javax.mail.MessagingException

setMsg

public Email setMsg(java.lang.String msg)
             throws javax.mail.MessagingException
Deprecated. 
Set the content of the mail

Specified by:
setMsg in class Email
Parameters:
msg - A String.
Returns:
An Email.
Throws:
MessagingException.
javax.mail.MessagingException


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