com.arsdigita.util
Class ACSEmail
java.lang.Object
|
+--org.apache.turbine.util.mail.Email
|
+--org.apache.turbine.util.mail.SimpleEmail
|
+--com.arsdigita.util.ACSEmail
- public class ACSEmail
- extends SimpleEmail
Presently just a conveince method added for building and sending a message.
This class should only be used as part of a "new" command; variables
should always be declared as the base type of
org.apache.turbine.util.mail.Email
TODO: Provide other methods for sending something more complicated
(i.e. HTML email) by adding additional subclasses of other
Turbine classes.
- Since:
- ACS 4.0
- See Also:
Email
|
Field Summary |
static java.lang.String |
cvsId
|
| Fields inherited from class org.apache.turbine.util.mail.Email |
ATTACHMENTS, EMAIL_BODY, EMAIL_SUBJECT, FILE_SERVER, MAIL_HOST, MAIL_SERVER, MAIL_TRANSPORT_PROTOCOL, RECEIVER_EMAIL, RECEIVER_NAME, SENDER_EMAIL, SENDER_NAME, SMTP, TEXT_HTML, TEXT_PLAIN |
|
Constructor Summary |
ACSEmail()
Default constructor |
|
Method Summary |
static void |
sendMail(java.lang.String to,
java.lang.String from,
java.lang.String subject,
java.lang.String body)
Sends a single e-mail message; analogous to ns_sendmail. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cvsId
public static final java.lang.String cvsId
ACSEmail
public ACSEmail()
throws javax.mail.MessagingException
- Default constructor
sendMail
public static void sendMail(java.lang.String to,
java.lang.String from,
java.lang.String subject,
java.lang.String body)
throws javax.mail.MessagingException
- Sends a single e-mail message; analogous to ns_sendmail.
This class is only appropriate for sending a simple plain text e-mail.