com.nurelm.util
Class QuickMail

java.lang.Object
  extended bycom.nurelm.util.QuickMail

public class QuickMail
extends java.lang.Object

You need the Java Mail API. We originally wrote this class with Java Mail 1.2. You can download it from... http://java.sun.com/products/javamail/ You also need JAF... http://java.sun.com/products/javabeans/glasgow/jaf.html Do the following... Unzip javamail-1_2.zip in /usr/java Unzip jaf-1_0_1.zip in /usr/java cd jaf-1.0.0 cp activation.jar ../javamail-1.2 (javamil needs activation.jar)


Field Summary
static java.lang.String CONTENT_TYPE_TEXT_HTML
          DOCUMENT ME!
static java.lang.String CONTENT_TYPE_TEXT_PLAIN
          DOCUMENT ME!
 
Constructor Summary
QuickMail()
          Creates a new QuickMail object.
 
Method Summary
 void sendMail(java.lang.String sendMsg, javax.mail.internet.InternetAddress[] toAddress, java.lang.String subject, java.lang.String fromAddress, java.lang.String contentType)
          Version to send mail to several people, separately.
 void sendMail(java.lang.String sendMsg, javax.mail.internet.InternetAddress toAddress, javax.mail.internet.InternetAddress[] ccAddress, javax.mail.internet.InternetAddress[] bccAddress, java.lang.String subject, java.lang.String fromAddress, java.lang.String contentType)
          Version to send mail to several people, separately.
 void sendMail(java.lang.String sendMsg, java.lang.String toAddress, java.lang.String subject, java.lang.String fromAddress, java.lang.String contentType)
          Most general version - all parameters are strings.
 void sendMailWithBcc(java.lang.String sendMsg, javax.mail.internet.InternetAddress toAddress, javax.mail.internet.InternetAddress[] bccAddress, java.lang.String subject, java.lang.String fromAddress, java.lang.String contentType)
          Version to send mail to several people, separately.
 void sendMailWithCC(java.lang.String sendMsg, javax.mail.internet.InternetAddress toAddress, javax.mail.internet.InternetAddress[] ccAddress, java.lang.String subject, java.lang.String fromAddress, java.lang.String contentType)
          Version to send mail to several people, separately.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTENT_TYPE_TEXT_HTML

public static final java.lang.String CONTENT_TYPE_TEXT_HTML
DOCUMENT ME!

See Also:
Constant Field Values

CONTENT_TYPE_TEXT_PLAIN

public static final java.lang.String CONTENT_TYPE_TEXT_PLAIN
DOCUMENT ME!

See Also:
Constant Field Values
Constructor Detail

QuickMail

public QuickMail()
Creates a new QuickMail object.

Method Detail

sendMail

public void sendMail(java.lang.String sendMsg,
                     javax.mail.internet.InternetAddress[] toAddress,
                     java.lang.String subject,
                     java.lang.String fromAddress,
                     java.lang.String contentType)
Version to send mail to several people, separately.

Parameters:
sendMsg - String holding the body content of the e-mail.
toAddress - Array of InternetAddress - many recipients
subject - String representing the subject of the e-mail.
fromAddress - String representing the return address.
contentType - String - the content type (text/plain or text/html)

sendMail

public void sendMail(java.lang.String sendMsg,
                     java.lang.String toAddress,
                     java.lang.String subject,
                     java.lang.String fromAddress,
                     java.lang.String contentType)
Most general version - all parameters are strings. They include the message, the to addresses, the subject, the from address, and the contenttype (text/plain or text/html). Sends mail using TO. The To addresses may be a string of comma delimited addresses if desired.

Parameters:
sendMsg - String holding the body content of the e-mail.
toAddress - String representing the receivers addresses.
subject - String representing the subject of the e-mail.
fromAddress - String representing the return address.
contentType - String - the content type (text/plain or text/html)

sendMail

public void sendMail(java.lang.String sendMsg,
                     javax.mail.internet.InternetAddress toAddress,
                     javax.mail.internet.InternetAddress[] ccAddress,
                     javax.mail.internet.InternetAddress[] bccAddress,
                     java.lang.String subject,
                     java.lang.String fromAddress,
                     java.lang.String contentType)
Version to send mail to several people, separately.

Parameters:
sendMsg - String holding the body content of the e-mail.
toAddress - Array of InternetAddress - many recipients
subject - String representing the subject of the e-mail.
ccAddress - Array of InternetAddress - Carbon Copy to many recipients
fromAddress - String representing the return address.
contentType - String - the content type (text/plain or text/html)

sendMailWithCC

public void sendMailWithCC(java.lang.String sendMsg,
                           javax.mail.internet.InternetAddress toAddress,
                           javax.mail.internet.InternetAddress[] ccAddress,
                           java.lang.String subject,
                           java.lang.String fromAddress,
                           java.lang.String contentType)
Version to send mail to several people, separately.

Parameters:
sendMsg - String holding the body content of the e-mail.
toAddress - InternetAddress - recipients
subject - String representing the subject of the e-mail.
fromAddress - String representing the return address.
contentType - String - the content type (text/plain or text/html)

sendMailWithBcc

public void sendMailWithBcc(java.lang.String sendMsg,
                            javax.mail.internet.InternetAddress toAddress,
                            javax.mail.internet.InternetAddress[] bccAddress,
                            java.lang.String subject,
                            java.lang.String fromAddress,
                            java.lang.String contentType)
Version to send mail to several people, separately.

Parameters:
sendMsg - String holding the body content of the e-mail.
toAddress - InternetAddress - recipients
subject - String representing the subject of the e-mail.
fromAddress - String representing the return address.
contentType - String - the content type (text/plain or text/html)