Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

se.astrakan.ecore.util
Class MailHandler  view MailHandler download MailHandler.java

java.lang.Object
  extended byse.astrakan.ecore.util.MailHandler

public class MailHandler
extends java.lang.Object

This class provides functions to send mails.


Constructor Summary
MailHandler()
           
 
Method Summary
 void composeMail(java.lang.String from, java.lang.String to, java.lang.String subject, java.lang.String body)
          This method composes the mails and delivers it to the destination address.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailHandler

public MailHandler()
            throws MailException
Method Detail

composeMail

public void composeMail(java.lang.String from,
                        java.lang.String to,
                        java.lang.String subject,
                        java.lang.String body)
                 throws javax.mail.SendFailedException,
                        java.lang.Exception
This method composes the mails and delivers it to the destination address. Note you have to set the mailHost in the system properties before it will work.