com.ebay.carad.os.vitalsigns.util
Class MailUtil

java.lang.Object
  extended by com.ebay.carad.os.vitalsigns.util.MailUtil

public abstract class MailUtil
extends java.lang.Object

Simple util for sending a message.

Version:
$Id$
Author:
Jeremy Kraybill

Constructor Summary
MailUtil()
           
 
Method Summary
static void sendMessage(java.lang.String[] from, java.lang.String[] to, java.lang.String subject, java.lang.String body, java.lang.String server)
          Sends an e-mail message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailUtil

public MailUtil()
Method Detail

sendMessage

public static void sendMessage(java.lang.String[] from,
                               java.lang.String[] to,
                               java.lang.String subject,
                               java.lang.String body,
                               java.lang.String server)
                        throws javax.mail.MessagingException
Sends an e-mail message.

Parameters:
from - an array of from e-mail addresses
to - an array of to e-mail addresses
subject - email subject
body - email body
server - SMTP server
Throws:
javax.mail.MessagingException - if bad things happen


Copyright © 2004-2009. All Rights Reserved.