org.mentawai.mail
Class SimpleEmail

java.lang.Object
  extended by org.mentawai.mail.Email
      extended by org.mentawai.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.1 2006/03/02 17:11:41 soliveira Exp $
Author:
Quinton McCombs, Colin Chalmers, Jon S. Stevens, Frank Y. Kim, Brett McLaughlin, Regis Koenig

Field Summary
 
Fields inherited from class org.mentawai.mail.Email
ATTACHMENTS, authenticator, bccList, bounceAddress, ccList, charset, content, CONTENT_TYPE, contentType, debug, EMAIL_BODY, EMAIL_SUBJECT, emailBody, FILE_SERVER, fromAddress, headers, hostName, ISO_8859_1, KOI8_R, MAIL_DEBUG, MAIL_FACTORY_CLASS, MAIL_FACTORY_FALLBACK, MAIL_FACTORY_PORT, MAIL_HOST, MAIL_PORT, MAIL_SMTP_AUTH, MAIL_SMTP_FROM, MAIL_TRANSPORT_PROTOCOL, message, popBeforeSmtp, popHost, popPassword, popUsername, RECEIVER_EMAIL, RECEIVER_NAME, replyList, SENDER_EMAIL, SENDER_NAME, sentDate, SMTP, smtpPort, ssl_connection, subject, TEXT_HTML, TEXT_PLAIN, toList, US_ASCII
 
Constructor Summary
SimpleEmail()
           
 
Method Summary
static void sendLater(String toName, String toEmail, String subject, String msg)
           
static void sendLater(String fromName, String fromEmail, String toName, String toEmail, String subject, String msg)
           
static void sendNow(String toName, String toEmail, String subject, String msg)
           
static void sendNow(String fromName, String fromEmail, String toName, String toEmail, String subject, String msg)
           
 Email setMsg(String messageBody)
          Sets the content of the mail.
 
Methods inherited from class org.mentawai.mail.Email
addBcc, addBcc, addCc, addCc, addHeader, addReplyTo, addReplyTo, addTo, addTo, getMailSession, getSentDate, removeBcc, removeCc, removeTo, send, send, sendLater, sendLater, sendLater, setAuthentication, setAuthenticator, setBcc, setBounceAddress, setCc, setCharset, setContent, setContent, setDebug, setDefaultAuthentication, setDefaultBounceAddress, setDefaultCharset, setDefaultFrom, setDefaultHostName, setDefaultPort, setDefaultPort, setDefaultSslConnection, setFactoryFallBack, setFrom, setFrom, setHeaders, setHostName, setMailSession, setPopBeforeSmtp, setSendEmail, setSentDate, setSmtpPort, setSslConnection, setSSLConnection, setSubject, setTo, toInternetAddressArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleEmail

public SimpleEmail()
Method Detail

setMsg

public Email setMsg(String messageBody)
             throws EmailException
Sets the content of the mail.

Specified by:
setMsg in class Email
Parameters:
messageBody - A String.
Returns:
An Email.
Throws:
EmailException - see javax.mail.internet.MimeBodyPart for defintions

sendNow

public static void sendNow(String toName,
                           String toEmail,
                           String subject,
                           String msg)
                    throws Exception
Throws:
Exception

sendLater

public static void sendLater(String toName,
                             String toEmail,
                             String subject,
                             String msg)
                      throws Exception
Throws:
Exception

sendNow

public static void sendNow(String fromName,
                           String fromEmail,
                           String toName,
                           String toEmail,
                           String subject,
                           String msg)
                    throws Exception
Throws:
Exception

sendLater

public static void sendLater(String fromName,
                             String fromEmail,
                             String toName,
                             String toEmail,
                             String subject,
                             String msg)
                      throws Exception
Throws:
Exception


Copyright © 2013. All Rights Reserved.