wyvern.world
Class EmailDispatcher

java.lang.Object
  extended bywyvern.world.EmailDispatcher

public final class EmailDispatcher
extends java.lang.Object

This class can send email messages to users.

Version:
1.0, Sep 17, 2000
Author:
Steve Yegge

Method Summary
static java.lang.String loadMessage(java.lang.String path)
          Loads a message from disk.
static void sendMessage(java.lang.String address, java.lang.String subject, java.lang.String body, java.lang.String sender, java.lang.String replyTo)
          Sends a message to a user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

sendMessage

public static void sendMessage(java.lang.String address,
                               java.lang.String subject,
                               java.lang.String body,
                               java.lang.String sender,
                               java.lang.String replyTo)
Sends a message to a user.

Parameters:
address - the email address to send the mail to
subject - the subject line
body - the email body
sender - who the email is from
replyTo - the reply-to address

loadMessage

public static java.lang.String loadMessage(java.lang.String path)
Loads a message from disk.

Parameters:
path - the path to the message under wyvern/admin/email
Returns:
the message text, null if not found