net.sf.borg.common
Class SendJavaMail
java.lang.Object
net.sf.borg.common.SendJavaMail
public class SendJavaMail
- extends Object
utility class to send out email via java mail
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SendJavaMail
public SendJavaMail()
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 hostmsgText - the email textsubject - the subjectfrom - the from addressto - the to addressuser - the smtp userpass - 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