org.apache.maven.announcement
Class MailUtils
java.lang.Object
org.apache.maven.announcement.MailUtils
public class MailUtils
- extends Object
Send an email message using Jakarta Commons Net
- Version:
- $Id: MailUtils.java 529166 2007-04-16 08:31:26Z ltheussl $
- Author:
- Felipe Leme
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MailUtils
public MailUtils()
sendMail
public static String sendMail(String server,
String client,
String from,
String to,
String subject,
String msg)
- Send an email message.
- Parameters:
server
- The serverclient
- The clientfrom
- from e-mail addressto
- to e-mail addresssubject
- e-mail subjectmsg
- e-mail body
- Returns:
- "ok" if everything is fine, the Exception error message otherwise
Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.