net.sf.borg.common
Class SendJavaMail

java.lang.Object
  extended by net.sf.borg.common.SendJavaMail

public class SendJavaMail
extends Object

utility class to send out email via java mail


Constructor Summary
SendJavaMail()
           
 
Method Summary
static void sendMail(String host, String msgText, String subject, String from, String to, String user, String pass)
          Send an mail.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SendJavaMail

public SendJavaMail()
Method Detail

sendMail

public static void sendMail(String host,
                            String msgText,
                            String subject,
                            String from,
                            String to,
                            String user,
                            String pass)
                     throws Exception
Send an mail.

Parameters:
host - the smtp host
msgText - the email text
subject - the subject
from - the from address
to - the to address
user - the smtp user
pass - the smtp password
Throws:
Exception - the exception


Generated September 24 2010 by mbb using Apache Ant version 1.7.1 compiled on June 27 2008 and Java version 1.6.0_20 from Sun Microsystems Inc. on Linux i386 2.6.24-28-generic