org.apache.maven.announcement
Class MailUtils

java.lang.Object
  extended by 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

Constructor Summary
MailUtils()
           
 
Method Summary
static String sendMail(String server, String client, String from, String to, String subject, String msg)
          Send an email message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailUtils

public MailUtils()
Method Detail

sendMail

public static String sendMail(String server,
                              String client,
                              String from,
                              String to,
                              String subject,
                              String msg)
Send an email message.

Parameters:
server - The server
client - The client
from - from e-mail address
to - to e-mail address
subject - e-mail subject
msg - e-mail body
Returns:
"ok" if everything is fine, the Exception error message otherwise


Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.